From 97fc1dd43dffbf05976aaf0bdc37695f81c2d5f5 Mon Sep 17 00:00:00 2001 From: nabeelio Date: Mon, 8 Mar 2021 11:19:31 -0500 Subject: [PATCH] Don't block API logins #1066 --- app/Http/Middleware/ApiAuth.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/Http/Middleware/ApiAuth.php b/app/Http/Middleware/ApiAuth.php index acbd24bc..805a2a98 100644 --- a/app/Http/Middleware/ApiAuth.php +++ b/app/Http/Middleware/ApiAuth.php @@ -39,10 +39,6 @@ class ApiAuth implements Middleware return $this->unauthorized('User not found with key "'.$api_key.'"'); } - if ($user->state !== UserState::ACTIVE) { - return $this->unauthorized('User is not ACTIVE, please contact an administrator'); - } - // Set the user to the request Auth::setUser($user); $request->merge(['user' => $user]);