Skip to content

Commit

Permalink
fixup! feat: Use inline password confirmation in external storage set…
Browse files Browse the repository at this point in the history
…tings
  • Loading branch information
artonge committed Nov 28, 2024
1 parent 7f24263 commit 16e5243
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ public function beforeController(Controller $controller, string $methodName) {
throw new NotConfirmedException();
}

$this->session->set('last-password-confirm', $this->timeFactory->getTime());
} else {
$lastConfirm = (int) $this->session->get('last-password-confirm');
// TODO: confirm excludedUserBackEnds can go away and remove it
if (!isset($this->excludedUserBackEnds[$backendClassName]) && $lastConfirm < ($this->timeFactory->getTime() - (30 * 60 + 15))) { // allow 15 seconds delay
Expand Down

0 comments on commit 16e5243

Please sign in to comment.