mirror of
https://github.com/sigmasternchen/mobmash.click
synced 2025-03-15 08:09:02 +00:00
fix: Initial pairing doesn't have csrf token yet
This commit is contained in:
parent
86c4d771c7
commit
9f7dc62791
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ function reload(): void {
|
|||
}
|
||||
|
||||
function newPairing(): array {
|
||||
if ($_REQUEST["csrfToken"] != $_SESSION["csrfToken"]) {
|
||||
if (isset($_SESSION["csrfToken"]) && ($_REQUEST["csrfToken"] != $_SESSION["csrfToken"])) {
|
||||
return [$_SESSION["left"], $_SESSION["right"]];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue