From 7b6dd5bf51bc2ecd33a00859c3a454e0da7d5772 Mon Sep 17 00:00:00 2001 From: Aselsan Date: Mon, 26 Aug 2024 14:27:31 +0700 Subject: [PATCH] Update HmacAuth.php --- src/Filters/HmacAuth.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Filters/HmacAuth.php b/src/Filters/HmacAuth.php index fd2123c04..37d1ae991 100644 --- a/src/Filters/HmacAuth.php +++ b/src/Filters/HmacAuth.php @@ -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()) { @@ -59,6 +55,10 @@ public function before(RequestInterface $request, $arguments = null) ->setJSON(['message' => lang('Auth.activationBlocked')]); } + if (setting('Auth.recordActiveDate')) { + $authenticator->recordActiveDate(); + } + return $request; }