We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e6a01e commit f689745Copy full SHA for f689745
packages/http/src/Session/VerifyCsrfMiddleware.php
@@ -78,7 +78,7 @@ private function ensureTokenMatches(Request $request): void
78
urldecode($request->headers->get(self::CSRF_HEADER_KEY)),
79
);
80
} catch (EncryptionException) {
81
- // If decryption fails, treat it as a mismatch
+ throw new CsrfTokenDidNotMatch();
82
}
83
84
0 commit comments