CsrfToken: fix erraneous return value usage

This commit is contained in:
Thomas Gelf 2015-08-02 12:51:05 +02:00
parent 0203196ffd
commit c38a9fcc12
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}