Skip to content

Commit acf7d81

Browse files
committed
feat(core): update CSRF class
1 parent 64855c2 commit acf7d81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Csrf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function __construct(
5656
$this->tokenName = $tokenNamePrefix . $this->getRandomValue($strength);
5757
$this->tokenValue = $tokenValuePrefix . $this->getRandomValue($strength);
5858

59-
if (array_key_exists($this->tokenName, $_SESSION) && is_array($_SESSION[$this->tokenName])) {
59+
if (array_key_exists($this->tokenName, $_SESSION)) {
6060
return;
6161
}
6262

0 commit comments

Comments
 (0)