You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: engine/Shopware/Components/CSRFTokenValidator.php
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -161,6 +161,7 @@ public function checkFrontendTokenValidation(Enlight_Event_EventArgs $args)
161
161
}
162
162
163
163
if (!$this->checkRequest($request, $response)) {
164
+
$this->regenerateToken($request, $response);
164
165
thrownewCSRFTokenValidationException(sprintf('The provided X-CSRF-Token for path "%s" is invalid. Please go back, reload the page and try again.', $request->getRequestUri()));
0 commit comments