login exception fix

This commit is contained in:
Yuri Kuznetsov
2021-02-01 19:11:13 +02:00
parent 6a7b782309
commit d7b9492f15
2 changed files with 12 additions and 1 deletions
+2
View File
@@ -185,6 +185,8 @@ class Auth
}
catch (Exception $e) {
$this->processException($response, $e);
return;
}
if ($authResult && ($authResult->isSuccess() || $authResult->isSecondStepRequired())) {
+10 -1
View File
@@ -50,10 +50,19 @@ class ErrorOutput
404 => 'Page Not Found',
409 => 'Conflict',
500 => 'Internal Server Error',
503 => 'Service Unavailable',
];
protected $allowedStatusCodeList = [
200, 201, 400, 401, 403, 404, 409, 500,
200,
201,
400,
401,
403,
404,
409,
500,
503,
];
protected $ignorePrintXStatusReasonExceptionClassNameList = [