Implemented CSRF token validation on user logout
This commit is contained in:
@@ -330,7 +330,7 @@ class FrontControllerCore extends Controller
|
||||
$this->context->customer->logout();
|
||||
|
||||
Tools::redirect(isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : null);
|
||||
} elseif (isset($_GET['mylogout'])) {
|
||||
} elseif (isset($_GET['mylogout']) && $this->isTokenValid()) {
|
||||
$this->context->customer->mylogout();
|
||||
Tools::redirect(isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user