Skip to content

Commit 820eb35

Browse files
committed
Fix RememberMe with null password
1 parent db3134e commit 820eb35

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ protected function onLoginSuccess(Request $request, Response $response, TokenInt
8989
/**
9090
* Generates the cookie value.
9191
*
92-
* @param string $class
93-
* @param string $username The username
94-
* @param int $expires The Unix timestamp when the cookie expires
95-
* @param string $password The encoded password
92+
* @param string $class
93+
* @param string $username The username
94+
* @param int $expires The Unix timestamp when the cookie expires
95+
* @param string|null $password The encoded password
9696
*
9797
* @return string
9898
*/
@@ -111,10 +111,10 @@ protected function generateCookieValue($class, $username, $expires, $password)
111111
/**
112112
* Generates a hash for the cookie to ensure it is not being tampered with.
113113
*
114-
* @param string $class
115-
* @param string $username The username
116-
* @param int $expires The Unix timestamp when the cookie expires
117-
* @param string $password The encoded password
114+
* @param string $class
115+
* @param string $username The username
116+
* @param int $expires The Unix timestamp when the cookie expires
117+
* @param string|null $password The encoded password
118118
*
119119
* @return string
120120
*/

0 commit comments

Comments
 (0)