diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-08-29 14:37:18 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-08-29 14:37:18 -0400 |
commit | 1c955606a18d885af9c0c936fe46e2bd11ee164f (patch) | |
tree | edb16adca1dc2f2ba139e14cab396becaab17215 /core | |
parent | efa30850736411414d7297970de72cf144fb5f0b (diff) | |
download | nextcloud-server-1c955606a18d885af9c0c936fe46e2bd11ee164f.tar.gz nextcloud-server-1c955606a18d885af9c0c936fe46e2bd11ee164f.zip |
Initial work on resetting forgotten passwords. It works, but still need to email a token to allow reset
Diffstat (limited to 'core')
-rw-r--r-- | core/templates/lostpassword.php | 15 | ||||
-rw-r--r-- | core/templates/resetpassword.php | 10 |
2 files changed, 25 insertions, 0 deletions
diff --git a/core/templates/lostpassword.php b/core/templates/lostpassword.php new file mode 100644 index 00000000000..212ca8d2edb --- /dev/null +++ b/core/templates/lostpassword.php @@ -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>
\ No newline at end of file diff --git a/core/templates/resetpassword.php b/core/templates/resetpassword.php new file mode 100644 index 00000000000..3c7c46efe13 --- /dev/null +++ b/core/templates/resetpassword.php @@ -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>
\ No newline at end of file |