From f1bcf6ef0289504f1f00e1265ad8ad88aa2302db Mon Sep 17 00:00:00 2001 From: kondou Date: Mon, 8 Apr 2013 07:11:35 +0200 Subject: [PATCH] Improve the password reset screen. Fixing #2752 --- core/css/styles.css | 2 ++ core/lostpassword/templates/lostpassword.php | 34 ++++++++++++++------ 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/core/css/styles.css b/core/css/styles.css index 4dfa3f64a3..6eea2be433 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -220,6 +220,8 @@ label.infield { cursor:text !important; top:1.05em; left:.85em; } } #login #databaseField .infield { padding-left:0; } #login form input[type="checkbox"]+label { position:relative; margin:0; font-size:1em; text-shadow:#fff 0 1px 0; } +#login form .errors { background:#fed7d7; border:1px solid #f00; list-style-indent:inside; margin:0 0 2em; padding:1em; } +#login .success { background:#d7fed7; border:1px solid #0f0; width: 35%; margin: 30px auto; padding:1em; text-align: center;} /* Show password toggle */ #show, #dbpassword { position:absolute; right:1em; top:.8em; float:right; } diff --git a/core/lostpassword/templates/lostpassword.php b/core/lostpassword/templates/lostpassword.php index dc9f0bc8ad..4009ba4405 100644 --- a/core/lostpassword/templates/lostpassword.php +++ b/core/lostpassword/templates/lostpassword.php @@ -1,17 +1,31 @@ -
-
- t('You will receive a link to reset your password via Email.'); ?> - - t('Reset email send.'); ?> - + +

+ t('The link to reset your password has been sent to your email.'); + echo "

"; + echo $l->t('If you do not receive it within a reasonable amount of time, check your spam/junk folders.'); + echo "

"; + echo $l->t('If it is not there ask your local administrator .'); + ?> +

+ + +
- t('Request failed!'); ?> +

+ t('Request failed!'); + echo "

"; + echo $l->t('Did you make sure the Email was right?'); + ?> +

+ t('You will receive a link to reset your password via Email.'); ?>

- -
- +
+ +