|
@@ 114-119 (lines=6) @@
|
| 111 |
|
{ |
| 112 |
|
$session = $request->getSession(); |
| 113 |
|
|
| 114 |
|
if ($session === null || !$session->isStarted() || $session->getId() != $sessionId || !$this->hasStoredCsrfToken()) { |
| 115 |
|
$response = $this->authenticator->logout($request); |
| 116 |
|
$response->setStatusCode(404); |
| 117 |
|
|
| 118 |
|
return $response; |
| 119 |
|
} |
| 120 |
|
|
| 121 |
|
$this->checkCsrfToken($request); |
| 122 |
|
|
|
@@ 145-150 (lines=6) @@
|
| 142 |
|
{ |
| 143 |
|
/** @var $session \Symfony\Component\HttpFoundation\Session\Session */ |
| 144 |
|
$session = $request->getSession(); |
| 145 |
|
if (!$session->isStarted() || $session->getId() != $sessionId || !$this->hasStoredCsrfToken()) { |
| 146 |
|
$response = $this->authenticator->logout($request); |
| 147 |
|
$response->setStatusCode(404); |
| 148 |
|
|
| 149 |
|
return $response; |
| 150 |
|
} |
| 151 |
|
|
| 152 |
|
$this->checkCsrfToken($request); |
| 153 |
|
|