File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -290,6 +290,7 @@ command will generate a nice skeleton to get you started::
290290
291291 use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
292292 use Symfony\Component\Security\Core\Exception\UserNotFoundException;
293+ use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
293294 use Symfony\Component\Security\Core\User\PasswordUpgraderInterface;
294295 use Symfony\Component\Security\Core\User\UserInterface;
295296 use Symfony\Component\Security\Core\User\UserProviderInterface;
@@ -347,13 +348,13 @@ command will generate a nice skeleton to get you started::
347348 }
348349
349350 /**
350- * Upgrades the encoded password of a user, typically for using a better hash algorithm.
351+ * Upgrades the hashed password of a user, typically for using a better hash algorithm.
351352 */
352- public function upgradePassword(UserInterface $user, string $newEncodedPassword ): void
353+ public function upgradePassword(PasswordAuthenticatedUserInterface $user, string $newHashedPassword ): void
353354 {
354- // TODO: when encoded passwords are in use, this method should:
355+ // TODO: when hashed passwords are in use, this method should:
355356 // 1. persist the new password in the user storage
356- // 2. update the $user object with $user->setPassword($newEncodedPassword );
357+ // 2. update the $user object with $user->setPassword($newHashedPassword );
357358 }
358359 }
359360
You can’t perform that action at this time.
0 commit comments