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 @@ -290,6 +290,7 @@ command will generate a nice skeleton to get you started::
290
290
291
291
use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
292
292
use Symfony\Component\Security\Core\Exception\UserNotFoundException;
293
+ use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
293
294
use Symfony\Component\Security\Core\User\PasswordUpgraderInterface;
294
295
use Symfony\Component\Security\Core\User\UserInterface;
295
296
use Symfony\Component\Security\Core\User\UserProviderInterface;
@@ -347,13 +348,13 @@ command will generate a nice skeleton to get you started::
347
348
}
348
349
349
350
/**
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.
351
352
*/
352
- public function upgradePassword(UserInterface $user, string $newEncodedPassword ): void
353
+ public function upgradePassword(PasswordAuthenticatedUserInterface $user, string $newHashedPassword ): void
353
354
{
354
- // TODO: when encoded passwords are in use, this method should:
355
+ // TODO: when hashed passwords are in use, this method should:
355
356
// 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 );
357
358
}
358
359
}
359
360
You can’t perform that action at this time.
0 commit comments