Skip to content

Commit

Permalink
ENH Stop using Controller::has_curr()
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Feb 13, 2025
1 parent c8dc424 commit a29555d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Extension/MemberExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,11 @@ public function providePermissions(): array
*/
protected function onAfterMemberLoggedIn(): void
{
if (!Controller::has_curr()) {
$controller = Controller::curr();
if (!$controller) {
return;
}

Controller::curr()
$controller
->getRequest()
->getSession()
->clear(ChangePasswordHandler::MFA_VERIFIED_ON_CHANGE_PASSWORD);
Expand Down

0 comments on commit a29555d

Please sign in to comment.