TokenCSRF

This commit is contained in:
David Bomba 2022-01-15 20:49:40 +11:00
parent 9bca3ef170
commit 41ca21947c

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.');
} // }
} // }
} }