Version 0.7.0 #1

Merged
kor-elf merged 90 commits from develop into main 2023-12-08 21:18:23 +06:00
Showing only changes of commit 92206a028a - Show all commits

View File

@ -26,7 +26,7 @@ final class AuthController extends Controller
{ {
$authorization = $request->getDto(); $authorization = $request->getDto();
$result = $this->authService->authorization($authorization); $result = $this->authService->authorization($authorization);
if (!$result->isSuccess()) { if ($result->isError()) {
if ($result->getCode() === Response::HTTP_UNAUTHORIZED) { if ($result->getCode() === Response::HTTP_UNAUTHORIZED) {
Log::warning('Unauthorized ' . $authorization->getEmail() . ' [' . $request->getClientIp() . ']'); Log::warning('Unauthorized ' . $authorization->getEmail() . ' [' . $request->getClientIp() . ']');
} }