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