File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Resources/skeleton/doctrine Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ public function __construct(ManagerRegistry $registry)
29
29
/**
30
30
* Used to upgrade (rehash) the user's password automatically over time.
31
31
*/
32
- public function upgradePassword(<?= sprintf ('%s ' , $ password_upgrade_user_interface ->getShortName ()); ?> $user, string $newEncodedPassword ): void
32
+ public function upgradePassword(<?= sprintf ('%s ' , $ password_upgrade_user_interface ->getShortName ()); ?> $user, string $newHashedPassword ): void
33
33
{
34
34
if (!$user instanceof <?= $ entity_class_name ?> ) {
35
35
throw new UnsupportedUserException(sprintf('Instances of "%s" are not supported.', \get_class($user)));
36
36
}
37
37
38
- $user->setPassword($newEncodedPassword );
38
+ $user->setPassword($newHashedPassword );
39
39
$this->_em->persist($user);
40
40
$this->_em->flush();
41
41
}
You can’t perform that action at this time.
0 commit comments