Skip to content

Commit

Permalink
Merge pull request #588 from creative-commoners/pulls/6.0/ctrl-curr
Browse files Browse the repository at this point in the history
ENH Stop using Controller::has_curr()
  • Loading branch information
GuySartorelli authored Feb 16, 2025
2 parents c8dc424 + a29555d commit 881bccd
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 881bccd

Please sign in to comment.