Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 955fd31

Browse files
Merge branch '4.2'
* 4.2: [Security] Add a separator in the remember me cookie hash
2 parents 38aba37 + dc80902 commit 955fd31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Http/RememberMe/TokenBasedRememberMeServices.php

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

0 commit comments

Comments
 (0)