Skip to content

Commit a29ce28

Browse files
pborrelimichaelcullum
authored andcommitted
[Security] Add a separator in the remember me cookie hash
1 parent 3e0b235 commit a29ce28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Security/Http/RememberMe/TokenBasedRememberMeServices.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,6 @@ protected function generateCookieValue($class, $username, $expires, $password)
120120
*/
121121
protected function generateCookieHash($class, $username, $expires, $password)
122122
{
123-
return hash_hmac('sha256', $class.$username.$expires.$password, $this->getSecret());
123+
return hash_hmac('sha256', $class.self::COOKIE_DELIMITER.$username.self::COOKIE_DELIMITER.$expires.self::COOKIE_DELIMITER.$password, $this->getSecret());
124124
}
125125
}

0 commit comments

Comments
 (0)