]> source.dussan.org Git - nextcloud-server.git/commitdiff
set needsPasswordReset flag correctly
authorRoger Szabo <roger.szabo@web.de>
Thu, 22 Jun 2017 07:58:30 +0000 (15:58 +0800)
committerRoger Szabo <roger.szabo@web.de>
Mon, 10 Jul 2017 07:16:42 +0000 (15:16 +0800)
Signed-off-by: Roger Szabo <roger.szabo@web.de>
apps/user_ldap/lib/Controller/RenewPasswordController.php

index 4714c0646cd551077c37d21ef278da716ccec8e2..7766a5a78de16615262479bc5725237c5227d932 100644 (file)
@@ -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', [