Skip to content

Commit

Permalink
Merge branch '4.2'
Browse files Browse the repository at this point in the history
* 4.2:
  [Security] Add a separator in the remember me cookie hash
  • Loading branch information
nicolas-grekas committed Apr 16, 2019
2 parents 5d58307 + abd8b95 commit 14ba16b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -122,6 +122,6 @@ protected function generateCookieValue($class, $username, $expires, $password)
*/
protected function generateCookieHash($class, $username, $expires, $password)
{
return hash_hmac('sha256', $class.$username.$expires.$password, $this->getSecret());
return hash_hmac('sha256', $class.self::COOKIE_DELIMITER.$username.self::COOKIE_DELIMITER.$expires.self::COOKIE_DELIMITER.$password, $this->getSecret());
}
}

0 comments on commit 14ba16b

Please sign in to comment.