mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
fixes on tests
This commit is contained in:
@@ -61,7 +61,7 @@ class TokenManager
|
||||
throw new UnexpectedValueException('username should not be empty to generate a token');
|
||||
}
|
||||
|
||||
$timestamp = $expiration->getTimestamp();
|
||||
$timestamp = (string) $expiration->getTimestamp();
|
||||
$hash = hash('sha1', $token . $username . $timestamp . $this->secret);
|
||||
|
||||
return [
|
||||
@@ -72,7 +72,7 @@ class TokenManager
|
||||
];
|
||||
}
|
||||
|
||||
public function verify($hash, $token, User $user, $timestamp)
|
||||
public function verify($hash, $token, User $user, string $timestamp)
|
||||
{
|
||||
$token = hex2bin(trim($token));
|
||||
|
||||
|
Reference in New Issue
Block a user