Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update SessionAuth.php
  • Loading branch information
warcooft authored Aug 26, 2024
commit 3bbe65ef92ca3e1688f528fded5574aa6d562c97
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