Hello,
is there any way for the users to recover their passwords?
Users - password recovery.
Re: Users - password recovery.
Hi, looks like no ..
We'll add it to the new version.
We'll add it to the new version.
Don't forget to run script update
Re: Users - password recovery.
Sounds good, v1.52 or 2 ?
Re: Users - password recovery.
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
and remind_password_email
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 } ?>
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







