Skip to content

Commit

Permalink
feat(core): update CSRF class
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Feb 8, 2021
1 parent 64855c2 commit acf7d81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Csrf.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function __construct(
$this->tokenName = $tokenNamePrefix . $this->getRandomValue($strength);
$this->tokenValue = $tokenValuePrefix . $this->getRandomValue($strength);

if (array_key_exists($this->tokenName, $_SESSION) && is_array($_SESSION[$this->tokenName])) {
if (array_key_exists($this->tokenName, $_SESSION)) {
return;
}

Expand Down

0 comments on commit acf7d81

Please sign in to comment.