summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoger Szabo <roger.szabo@web.de>2017-06-22 15:58:30 +0800
committerRoger Szabo <roger.szabo@web.de>2017-06-22 15:58:30 +0800
commitbf9412df63d150697e985795f03c24736ea4dc81 (patch)
tree4e4d9f37056a00df0eaa31d0c834ed73149d4543
parent1d8e73b10843d60789010008902017530f8b2121 (diff)
downloadnextcloud-server-bf9412df63d150697e985795f03c24736ea4dc81.tar.gz
nextcloud-server-bf9412df63d150697e985795f03c24736ea4dc81.zip
set needsPasswordReset flag correctly
Signed-off-by: Roger Szabo <roger.szabo@web.de>
-rw-r--r--apps/user_ldap/lib/Controller/RenewPasswordController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Controller/RenewPasswordController.php b/apps/user_ldap/lib/Controller/RenewPasswordController.php
index 4714c0646cd..7766a5a78de 100644
--- a/apps/user_ldap/lib/Controller/RenewPasswordController.php
+++ b/apps/user_ldap/lib/Controller/RenewPasswordController.php
@@ -146,7 +146,7 @@ class RenewPasswordController extends Controller {
$this->session->set('loginMessages', [
[], [$this->l10n->t("Please login with the new password")]
]);
- $this->session->remove('needPasswordRenewal');
+ $this->config->setUserValue($uid, 'user_ldap', 'needsPasswordReset', 'false');
return new RedirectResponse($this->urlGenerator->linkToRoute('core.login.showLoginForm', $args));
} else {
$this->session->set('renewPasswordMessages', [