Skip to content

Commit b326bb2

Browse files
committed
Session controller should not require CSRF when creating session
1 parent 065bbf3 commit b326bb2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/lib/Server/Controller/SessionController.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ public function createSessionAction(Request $request)
7878

7979
try {
8080
$session = $request->getSession();
81-
if ($session->isStarted() && $this->hasStoredCsrfToken()) {
82-
$this->checkCsrfToken($request);
83-
}
84-
8581
$token = $this->getAuthenticator()->authenticate($request);
8682
$csrfToken = $this->getCsrfToken();
8783

0 commit comments

Comments
 (0)