aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2017-10-30 17:56:49 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2017-11-02 12:03:31 +0100
commitaca29b0c889955285a8e56e7609724a9fd873345 (patch)
tree4bc71a091ea936c7533a2071df6c629f58eb0143 /core
parent8ee765a61743db31749b0bdb51ce09915458325f (diff)
downloadnextcloud-server-aca29b0c889955285a8e56e7609724a9fd873345.tar.gz
nextcloud-server-aca29b0c889955285a8e56e7609724a9fd873345.zip
Directly show Forgot password link, fix #6808
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'core')
-rw-r--r--core/css/guest.css11
-rw-r--r--core/templates/login.php7
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"/>