1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-22 09:21:34 +02:00

Show validaton error when failed to reset password

This commit is contained in:
Hillel Coren 2016-09-20 14:57:44 +03:00
parent 5f861f491a
commit 8b83f67cc4

View File

@ -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,