Merge branch 'v5-develop' of https://github.com/turbo124/invoiceninja into v5-develop
This commit is contained in:
commit
6f6d3dac16
1 changed files with 7 additions and 7 deletions
|
|
@ -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…
Add table
Reference in a new issue