mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 08:44:11 +02:00
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()
|
||||
{
|
||||
$seed = mt_rand();
|
||||
list ($seed, $token) = hash('sha256', self::getSessionId() . $seed);
|
||||
$token = hash('sha256', self::getSessionId() . $seed);
|
||||
|
||||
return sprintf('%s|%s', $seed, $token);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user