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