Page 1 of 1

Users - password recovery.

Posted: Wed Jul 06, 2016 11:24 am
by alexscj
Hello,

is there any way for the users to recover their passwords?

Re: Users - password recovery.

Posted: Wed Jul 06, 2016 12:12 pm
by admin
Hi, looks like no ..
We'll add it to the new version.

Re: Users - password recovery.

Posted: Wed Jul 06, 2016 12:15 pm
by alexscj
Sounds good, v1.52 or 2 ?

Re: Users - password recovery.

Posted: Wed Jul 06, 2016 5:43 pm
by admin
2

Re: Users - password recovery.

Posted: Fri Jul 08, 2016 11:57 am
by admin
Added
I'll add test templates to default installation a bit later but you can use it right away.

http://monday/tt/tube/?action=remind_password

create a template remind_password

Code: Select all

<?php
if ('<!--NEW_PASSWORD-->') {
?>

Your new password is '<!--NEW_PASSWORD-->'

<?php } else { ?>

<form method='POST'>
<input type='hidden' name='action' value='remind_password'>

<h2 class="name_page">Remind password</h2>
<!--ERROR-->
<div class="r_line">
	<label>Username:</label>
	<input type="text" class="s_input" name='username' />
</div>

<div class="r_line">
	<label>Email:</label>
	<input type="text" class="s_input" name='email' />
</div>

   <?if ($rot_settings['tube_reg_captcha']) { ?>
   
 <div class="r_line">
	<label>Securaty Code:</label>  <img src='/scj/tube/captcha.php' id='captcha_img' alt="Captcha" />
	<input type="text" class="s_input" name='captcha' style="width:135px;" />
</div>
  <? } ?>

   <div class="r_line">
  <input type='submit' value='Remind' style="margin-left:150px;" /> 
  </div>

</form>   


<?php } ?>

and remind_password_email

Code: Select all


<p>Hello <?=$user['username']?>!</p>
<p>Please, click at the following link to create a new password 
<a href="http://<?=$_SERVER['HTTP_HOST']?>/?action=remind_password&code=<?=$user['reg_code']?>">click here</a>.</p>


<p>
Thank you.