Skip to content

Commit

Permalink
Update HmacAuth.php
Browse files Browse the repository at this point in the history
  • Loading branch information
warcooft authored Aug 26, 2024
1 parent 918051a commit 7b6dd5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Filters/HmacAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ public function before(RequestInterface $request, $arguments = null)
->setJSON(['message' => lang('Auth.badToken')]);
}

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

// Block inactive users when Email Activation is enabled
$user = $authenticator->getUser();
if ($user !== null && ! $user->isActivated()) {
Expand All @@ -59,6 +55,10 @@ public function before(RequestInterface $request, $arguments = null)
->setJSON(['message' => lang('Auth.activationBlocked')]);
}

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

return $request;
}

Expand Down

0 comments on commit 7b6dd5b

Please sign in to comment.