diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/css/guest.css | 11 | ||||
-rw-r--r-- | core/templates/login.php | 7 |
2 files changed, 17 insertions, 1 deletions
diff --git a/core/css/guest.css b/core/css/guest.css index 576efafec5f..dd610384e31 100644 --- a/core/css/guest.css +++ b/core/css/guest.css @@ -384,13 +384,22 @@ form .warning input[type='checkbox']+label { #remember_login { margin: 18px 5px 0 16px !important; } -.remember-login-container { +.remember-login-container, +.lost-password-container { display: inline-block; margin: 10px 0; text-align: center; width: 100%; text-shadow: 0 0 2px rgba(0, 0, 0, .4); // better readability on bright background } +.lost-password-container { + margin: 0; +} +.lost-password-container #lost-password { + color: #fff; + padding: 10px; + opacity: .7; +} #forgot-password { padding: 11px; float: right; diff --git a/core/templates/login.php b/core/templates/login.php index 0801b3746df..342eb43a625 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -75,6 +75,13 @@ script('core', 'merged-login'); <?php } ?> <label for="remember_login"><?php p($l->t('Stay logged in')); ?></label> </div> + <?php if (!empty($_['canResetPassword'])) { ?> + <div class="lost-password-container"> + <a id="lost-password" href="<?php p($_['resetPasswordLink']); ?>"> + <?php p($l->t('Forgot password?')); ?> + </a> + </div> + <?php } ?> </div> <input type="hidden" name="timezone_offset" id="timezone_offset"/> |