Version 0.7.0 #1
@ -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() . ']');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user