aboutsummaryrefslogtreecommitdiffstats
path: root/core/templates/login.php
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2017-11-02 12:02:51 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2017-11-02 12:04:35 +0100
commit585e9f9fcdfbe095f7112ca102c7da59179266e0 (patch)
treecef32f738332a509f7bb5167b88e6786eb772c14 /core/templates/login.php
parentaca29b0c889955285a8e56e7609724a9fd873345 (diff)
downloadnextcloud-server-585e9f9fcdfbe095f7112ca102c7da59179266e0.tar.gz
nextcloud-server-585e9f9fcdfbe095f7112ca102c7da59179266e0.zip
Add some JS to hide and show elements for password reset
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'core/templates/login.php')
-rw-r--r--core/templates/login.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/core/templates/login.php b/core/templates/login.php
index 342eb43a625..c7b43bb3d84 100644
--- a/core/templates/login.php
+++ b/core/templates/login.php
@@ -51,7 +51,7 @@ script('core', 'merged-login');
<label for="password" class="infield"><?php p($l->t('Password')); ?></label>
</p>
- <?php if (!empty($_['invalidpassword']) && !empty($_['canResetPassword'])) { ?>
+ <?php if (!empty($_['invalidpassword']) && !empty($_['canResetPlost-passwordassword'])) { ?>
<a id="lost-password" class="warning" href="<?php p($_['resetPasswordLink']); ?>">
<?php p($l->t('Wrong password. Reset it?')); ?>
</a>
@@ -63,7 +63,7 @@ script('core', 'merged-login');
<div id="submit-wrapper">
<input type="submit" id="submit" class="login primary" title="" value="<?php p($l->t('Log in')); ?>" disabled="disabled" />
- <div id="submit-icon" class="icon-confirm-white"></div>
+ <div class="submit-icon icon-confirm-white"></div>
</div>
<div class="login-additional">
@@ -80,6 +80,13 @@ script('core', 'merged-login');
<a id="lost-password" href="<?php p($_['resetPasswordLink']); ?>">
<?php p($l->t('Forgot password?')); ?>
</a>
+ <div id="reset-password-wrapper" style="display: none;">
+ <input type="submit" id="reset-password-submit" class="login primary" title="" value="<?php p($l->t('Reset password')); ?>" disabled="disabled" />
+ <div class="submit-icon icon-confirm-white"></div>
+ <a id="lost-password-back" href="">
+ <?php p($l->t('Back to log in')); ?>
+ </a>
+ </div>
</div>
<?php } ?>
</div>