File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -279,6 +279,7 @@ command will generate a nice skeleton to get you started::
279
279
280
280
use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
281
281
use Symfony\Component\Security\Core\Exception\UserNotFoundException;
282
+ use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
282
283
use Symfony\Component\Security\Core\User\PasswordUpgraderInterface;
283
284
use Symfony\Component\Security\Core\User\UserInterface;
284
285
use Symfony\Component\Security\Core\User\UserProviderInterface;
@@ -333,13 +334,13 @@ command will generate a nice skeleton to get you started::
333
334
}
334
335
335
336
/**
336
- * Upgrades the encoded password of a user, typically for using a better hash algorithm.
337
+ * Upgrades the hashed password of a user, typically for using a better hash algorithm.
337
338
*/
338
- public function upgradePassword(UserInterface $user, string $newEncodedPassword ): void
339
+ public function upgradePassword(PasswordAuthenticatedUserInterface $user, string $newHashedPassword ): void
339
340
{
340
- // TODO: when encoded passwords are in use, this method should:
341
+ // TODO: when hashed passwords are in use, this method should:
341
342
// 1. persist the new password in the user storage
342
- // 2. update the $user object with $user->setPassword($newEncodedPassword );
343
+ // 2. update the $user object with $user->setPassword($newHashedPassword );
343
344
}
344
345
}
345
346
You can’t perform that action at this time.
0 commit comments