CsrfToken: fix erraneous return value usage
This commit is contained in:
parent
0203196ffd
commit
c38a9fcc12
|
@ -34,7 +34,7 @@ class CsrfToken
|
||||||
public static function generate()
|
public static function generate()
|
||||||
{
|
{
|
||||||
$seed = mt_rand();
|
$seed = mt_rand();
|
||||||
list ($seed, $token) = hash('sha256', self::getSessionId() . $seed);
|
$token = hash('sha256', self::getSessionId() . $seed);
|
||||||
|
|
||||||
return sprintf('%s|%s', $seed, $token);
|
return sprintf('%s|%s', $seed, $token);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue