mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-03 12:10:42 -06:00
Don't report authentication exceptions.
This commit is contained in:
parent
477a3c7eb2
commit
955cde3ed9
@ -133,18 +133,13 @@ class Handler extends ExceptionHandler
|
||||
if (
|
||||
// if the user wants us to mail:
|
||||
$doMailError === true
|
||||
&& ((
|
||||
// and if is one of these error instances
|
||||
$exception instanceof FireflyException
|
||||
|| $exception instanceof ErrorException
|
||||
|| $exception instanceof OAuthServerException
|
||||
&& (
|
||||
// and if is one of these error instances
|
||||
$exception instanceof FireflyException
|
||||
|| $exception instanceof ErrorException
|
||||
|| $exception instanceof OAuthServerException
|
||||
|
||||
)
|
||||
|| (
|
||||
// or this one, but it's a JSON exception.
|
||||
$exception instanceof AuthenticationException
|
||||
&& Request::expectsJson() === true
|
||||
))
|
||||
)
|
||||
) {
|
||||
// then, send email
|
||||
$userData = [
|
||||
|
Loading…
Reference in New Issue
Block a user