Skip to content

Commit

Permalink
login: use getTime for last-pw (fix #253)
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsejet committed Nov 28, 2023
1 parent abe5123 commit 714cb3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit 714cb3e

Please sign in to comment.