Skip to content

Commit

Permalink
Update SessionAuth.php
Browse files Browse the repository at this point in the history
  • Loading branch information
warcooft authored Aug 26, 2024
1 parent 7b6dd5b commit 3bbe65e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Filters/SessionAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ public function before(RequestInterface $request, $arguments = null)
$authenticator = auth('session')->getAuthenticator();

if ($authenticator->loggedIn()) {
if (setting('Auth.recordActiveDate')) {
$authenticator->recordActiveDate();
}

// Block inactive users when Email Activation is enabled
$user = $authenticator->getUser();

Expand All @@ -76,6 +72,10 @@ public function before(RequestInterface $request, $arguments = null)
}
}

if (setting('Auth.recordActiveDate')) {
$authenticator->recordActiveDate();
}

return;
}

Expand Down

0 comments on commit 3bbe65e

Please sign in to comment.