Don't block API logins #1066

This commit is contained in:
nabeelio
2021-03-08 11:19:31 -05:00
parent edc37f40fa
commit 97fc1dd43d
-4
View File
@@ -39,10 +39,6 @@ class ApiAuth implements Middleware
return $this->unauthorized('User not found with key "'.$api_key.'"'); 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 // Set the user to the request
Auth::setUser($user); Auth::setUser($user);
$request->merge(['user' => $user]); $request->merge(['user' => $user]);