diff --git a/app/Http/Controllers/AuthController.php b/app/Http/Controllers/AuthController.php index 1ac73c8..096f082 100644 --- a/app/Http/Controllers/AuthController.php +++ b/app/Http/Controllers/AuthController.php @@ -26,7 +26,7 @@ final class AuthController extends Controller { $authorization = $request->getDto(); $result = $this->authService->authorization($authorization); - if (!$result->isSuccess()) { + if ($result->isError()) { if ($result->getCode() === Response::HTTP_UNAUTHORIZED) { Log::warning('Unauthorized ' . $authorization->getEmail() . ' [' . $request->getClientIp() . ']'); }