Skip to content

Commit

Permalink
fix(session): Set last-password-confirm for token logins
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin committed Jan 22, 2024
1 parent 1a5d5a2 commit 8af28c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/private/User/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,9 @@ public function tryTokenLogin(IRequest $request) {
$this->session->set('app_password', $token);
}

// Set the last-password-confirm session to make the sudo mode work
$this->session->set('last-password-confirm', $this->timeFactory->getTime());

return true;
}

Expand Down

0 comments on commit 8af28c0

Please sign in to comment.