From fc98116ae5e47f25bafc9354492ac8b5a165757c Mon Sep 17 00:00:00 2001 From: Mohammad Hafijul Islam Date: Sun, 1 Oct 2023 15:14:32 +0600 Subject: [PATCH 1/2] LP-8 fix: user status update system error fixed --- src/Http/Controllers/AuthenticatedSessionController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Controllers/AuthenticatedSessionController.php b/src/Http/Controllers/AuthenticatedSessionController.php index aa5abd8..8aedf42 100644 --- a/src/Http/Controllers/AuthenticatedSessionController.php +++ b/src/Http/Controllers/AuthenticatedSessionController.php @@ -40,7 +40,7 @@ public function store(LoginRequest $request): LoginResource|JsonResponse if ($attemptUser->wrong_password > config('fintech.auth.threshold.password', 10)) { \Fintech\Auth\Facades\Auth::user()->update($attemptUser->id, [ - 'status' => UserStatus::InActive->value, + 'status' => UserStatus::InActive->value ]); return $this->failed(__('auth::messages.lockup')); From 7fabd4af686177316a54a1deae01ee21cd2a47a7 Mon Sep 17 00:00:00 2001 From: hafijul233 Date: Sun, 1 Oct 2023 09:15:06 +0000 Subject: [PATCH 2/2] Fix styling --- src/Http/Controllers/AuthenticatedSessionController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Controllers/AuthenticatedSessionController.php b/src/Http/Controllers/AuthenticatedSessionController.php index 8aedf42..aa5abd8 100644 --- a/src/Http/Controllers/AuthenticatedSessionController.php +++ b/src/Http/Controllers/AuthenticatedSessionController.php @@ -40,7 +40,7 @@ public function store(LoginRequest $request): LoginResource|JsonResponse if ($attemptUser->wrong_password > config('fintech.auth.threshold.password', 10)) { \Fintech\Auth\Facades\Auth::user()->update($attemptUser->id, [ - 'status' => UserStatus::InActive->value + 'status' => UserStatus::InActive->value, ]); return $this->failed(__('auth::messages.lockup'));