Merge branch 'v5-develop' of https://github.com/turbo124/invoiceninja into v5-develop

This commit is contained in:
David Bomba 2022-01-15 22:15:48 +11:00
commit 6f6d3dac16

View File

@ -33,15 +33,15 @@ class VerifyCsrfToken extends Middleware
]; ];
public function handle($request, \Closure $next) { // public function handle($request, \Closure $next) {
try { // try {
return parent::handle($request, $next); // return parent::handle($request, $next);
} catch (TokenMismatchException $ex) { // } catch (TokenMismatchException $ex) {
throw new TokenMismatchException('CSRF token mismatch.'); // throw new TokenMismatchException('CSRF token mismatch.');
} // }
} // }
} }