From 714cb3e1f0340ecce87dfd1c42268a42d4c2ff7c Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Tue, 28 Nov 2023 10:20:09 -0800 Subject: [PATCH] login: use getTime for last-pw (fix #253) --- lib/Controller/LoginController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/LoginController.php b/lib/Controller/LoginController.php index 6dc8e0e..7e48dfb 100644 --- a/lib/Controller/LoginController.php +++ b/lib/Controller/LoginController.php @@ -106,7 +106,7 @@ private function login(array $profile): RedirectResponse \OC::$server->get(\OCP\Files\IRootFolder::class)->getUserFolder($user->getUID()); // Prevent being asked to change password - $this->session->set('last-password-confirm', \OC::$server->get(ITimeFactory::class)->now()); + $this->session->set('last-password-confirm', \OC::$server->get(ITimeFactory::class)->getTime()); // Go to redirection URI if ($redirectUrl = $this->request->getParam('login_redirect_url')) {