Skip to content

Commit

Permalink
[BUGFIX] Clear changePasswordReason after password change
Browse files Browse the repository at this point in the history
Refs #80
  • Loading branch information
derhansen committed Apr 2, 2024
1 parent 2f6a801 commit 68df64a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Classes/Service/FrontendUserService.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ public function updatePassword(string $newPassword, array $settings): void

// Unset reason for password change in user session
$this->getFrontendUser()->setKey('ses', self::SESSION_KEY, null);
$this->getFrontendUser()->storeSessionData();

// Destroy all sessions of the user except the current one
$sessionManager = GeneralUtility::makeInstance(SessionManager::class);
Expand Down

0 comments on commit 68df64a

Please sign in to comment.