mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 13:42:49 +01:00
Show validaton error when failed to reset password
This commit is contained in:
parent
5f861f491a
commit
8b83f67cc4
@ -10,7 +10,8 @@ use Illuminate\Auth\Access\AuthorizationException;
|
|||||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||||
use Symfony\Component\HttpKernel\Exception\HttpException;
|
use Symfony\Component\HttpKernel\Exception\HttpException;
|
||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
use Illuminate\Validation\ValidationException;
|
use Illuminate\Foundation\Validation\ValidationException;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Handler
|
* Class Handler
|
||||||
@ -84,7 +85,8 @@ class Handler extends ExceptionHandler
|
|||||||
// In production, except for maintenance mode, we'll show a custom error screen
|
// In production, except for maintenance mode, we'll show a custom error screen
|
||||||
if (Utils::isNinjaProd()
|
if (Utils::isNinjaProd()
|
||||||
&& !Utils::isDownForMaintenance()
|
&& !Utils::isDownForMaintenance()
|
||||||
&& !($e instanceof HttpResponseException)) {
|
&& !($e instanceof HttpResponseException)
|
||||||
|
&& !($e instanceof ValidationException)) {
|
||||||
$data = [
|
$data = [
|
||||||
'error' => get_class($e),
|
'error' => get_class($e),
|
||||||
'hideHeader' => true,
|
'hideHeader' => true,
|
||||||
|
Loading…
Reference in New Issue
Block a user