From: Roger Szabo Date: Thu, 22 Jun 2017 07:58:30 +0000 (+0800) Subject: set needsPasswordReset flag correctly X-Git-Tag: v12.0.1RC1~21^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3e7a49e0096a7bc89b5dd9f65738f059248af022;p=nextcloud-server.git set needsPasswordReset flag correctly Signed-off-by: Roger Szabo --- 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', [