mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge branch 'v5-develop' of https://github.com/turbo124/invoiceninja into v5-develop
This commit is contained in:
commit
6f6d3dac16
@ -33,15 +33,15 @@ class VerifyCsrfToken extends Middleware
|
||||
];
|
||||
|
||||
|
||||
public function handle($request, \Closure $next) {
|
||||
// public function handle($request, \Closure $next) {
|
||||
|
||||
try {
|
||||
return parent::handle($request, $next);
|
||||
} catch (TokenMismatchException $ex) {
|
||||
// try {
|
||||
// return parent::handle($request, $next);
|
||||
// } catch (TokenMismatchException $ex) {
|
||||
|
||||
throw new TokenMismatchException('CSRF token mismatch.');
|
||||
|
||||
}
|
||||
}
|
||||
// throw new TokenMismatchException('CSRF token mismatch.');
|
||||
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user