Users - password recovery.

Post Reply
alexscj
Posts: 160
Joined: Mon Apr 01, 2013 3:04 pm

Users - password recovery.

Post by alexscj »

Hello,

is there any way for the users to recover their passwords?
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Users - password recovery.

Post by admin »

Hi, looks like no ..
We'll add it to the new version.
Don't forget to run script update
alexscj
Posts: 160
Joined: Mon Apr 01, 2013 3:04 pm

Re: Users - password recovery.

Post by alexscj »

Sounds good, v1.52 or 2 ?
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Users - password recovery.

Post by admin »

2
Don't forget to run script update
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Users - password recovery.

Post 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.

Don't forget to run script update
Post Reply