Initial work on resetting forgotten passwords. It works, but still need to email a token to allow reset
parent
efa3085073
commit
1c955606a1
@ -0,0 +1,15 @@ |
||||
<form action="index.php?lostpassword" method="post"> |
||||
<fieldset> |
||||
<?php echo $l->t('You will receive a link to reset your password via Email.'); ?> |
||||
<?php if ($_['requested']): ?> |
||||
<?php echo $l->t( 'Requested' ); ?> |
||||
|
||||
<?php else: ?> |
||||
<?php if ($_['error']): ?> |
||||
<?php echo $l->t( 'Login failed!' ); ?> |
||||
<?php endif; ?> |
||||
<input type="text" name="user" id="user" placeholder="<?php echo $l->t('Username or Email'); ?>" value="" autocomplete="off" required autofocus />
|
||||
<input type="submit" id="submit" value="<?php echo $l->t('Request reset'); ?>" />
|
||||
<?php endif; ?> |
||||
</fieldset> |
||||
</form> |
@ -0,0 +1,10 @@ |
||||
<form action="<?php echo "index.php?".$_SERVER['QUERY_STRING'] ?>" method="post">
|
||||
<fieldset> |
||||
<?php if($_['success']): ?> |
||||
<?php echo $l->t('Your password was successfully reset'); ?> |
||||
<?php else: ?> |
||||
<input type="password" name="password" id="password" placeholder="<?php echo $l->t('New password'); ?>" value="" required />
|
||||
<input type="submit" id="submit" value="<?php echo $l->t('Reset password'); ?>" />
|
||||
<?php endif; ?> |
||||
</fieldset> |
||||
</form> |
Loading…
Reference in new issue