|
|
@ -123,9 +123,12 @@ class AuthController extends Controller |
|
|
], |
|
|
], |
|
|
'token' => $token, |
|
|
'token' => $token, |
|
|
]); |
|
|
]); |
|
|
} catch (ValidationException|CustomException $e) { |
|
|
} catch (ValidationException $e) { |
|
|
RateLimiter::hit($throttleKey, $this->decayMinutes()); |
|
|
RateLimiter::hit($throttleKey, $this->decayMinutes()); |
|
|
throw $e; |
|
|
throw $e; |
|
|
|
|
|
} catch (CustomException $e) { |
|
|
|
|
|
RateLimiter::hit($throttleKey, $this->decayMinutes()); |
|
|
|
|
|
return $this->responseService->businessError($e->getMessage(), $e->getCode()); |
|
|
} catch (\Exception $e) { |
|
|
} catch (\Exception $e) { |
|
|
RateLimiter::hit($throttleKey, $this->decayMinutes()); |
|
|
RateLimiter::hit($throttleKey, $this->decayMinutes()); |
|
|
$m_prefix = __('admin.login') . __('admin.failed'); |
|
|
$m_prefix = __('admin.login') . __('admin.failed'); |
|
|
|