mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-28 18:01:26 -06:00
It's about expecting JSON, not accepting it.
This commit is contained in:
parent
10abd7b0ae
commit
fbb9d7c6b4
@ -143,7 +143,7 @@ class Handler extends ExceptionHandler
|
||||
|| (
|
||||
// or this one, but it's a JSON exception.
|
||||
$exception instanceof AuthenticationException
|
||||
&& Request::acceptsJson() === true
|
||||
&& Request::expectsJson() === true
|
||||
))
|
||||
) {
|
||||
// then, send email
|
||||
|
Loading…
Reference in New Issue
Block a user