We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
fabpot
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
upgradePassword
1 parent f019e47 commit 6a90896Copy full SHA for 6a90896
security/passwords.rst
@@ -500,13 +500,14 @@ the user provider::
500
namespace App\Security;
501
502
// ...
503
+ use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
504
use Symfony\Component\Security\Core\User\PasswordUpgraderInterface;
505
506
class UserProvider implements UserProviderInterface, PasswordUpgraderInterface
507
{
508
509
- public function upgradePassword(UserInterface $user, string $newHashedPassword): void
510
+ public function upgradePassword(PasswordAuthenticatedUserInterface $user, string $newHashedPassword): void
511
512
// set the new hashed password on the User object
513
$user->setPassword($newHashedPassword);
0 commit comments