diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-12-07 15:14:19 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-12-07 15:14:19 +0100 |
commit | f8f3c9ecf9da1f14722f6d3266a0e80ea157f98f (patch) | |
tree | d2851d889610a6acf06a270aeba705c18ced42ed /core | |
parent | e44b164f406b52530d81e755c9e1b959e0f1ef27 (diff) | |
download | nextcloud-server-f8f3c9ecf9da1f14722f6d3266a0e80ea157f98f.tar.gz nextcloud-server-f8f3c9ecf9da1f14722f6d3266a0e80ea157f98f.zip |
Remove password reset when the user can not change the password
Diffstat (limited to 'core')
-rw-r--r-- | core/templates/login.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/templates/login.php b/core/templates/login.php index 03be6258fdf..7b09d4fac95 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -56,11 +56,15 @@ script('core', [ <input type="submit" id="submit" class="login primary icon-confirm svg" title="<?php p($l->t('Log in')); ?>" value="" disabled="disabled"/> </p> - <?php if (isset($_['invalidpassword']) && ($_['invalidpassword'])): ?> + <?php if (!empty($_['invalidpassword']) && !empty($_['canResetPassword'])) { ?> <a id="lost-password" class="warning" href=""> <?php p($l->t('Wrong password. Reset it?')); ?> </a> - <?php endif; ?> + <?php } else if (!empty($_['invalidpassword'])) { ?> + <p class="warning"> + <?php p($l->t('Wrong password.')); ?> + </p> + <?php } ?> <?php if ($_['rememberLoginAllowed'] === true) : ?> <div class="remember-login-container"> <input type="checkbox" name="remember_login" value="1" id="remember_login" class="checkbox checkbox--white"> |