Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6a90896

Browse filesBrowse files
Synxgzjaviereguiluz
authored andcommitted
[Security] Fix type in upgradePassword
1 parent f019e47 commit 6a90896
Copy full SHA for 6a90896

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎security/passwords.rst

Copy file name to clipboardExpand all lines: security/passwords.rst
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,13 +500,14 @@ the user provider::
500500
namespace App\Security;
501501

502502
// ...
503+
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
503504
use Symfony\Component\Security\Core\User\PasswordUpgraderInterface;
504505

505506
class UserProvider implements UserProviderInterface, PasswordUpgraderInterface
506507
{
507508
// ...
508509

509-
public function upgradePassword(UserInterface $user, string $newHashedPassword): void
510+
public function upgradePassword(PasswordAuthenticatedUserInterface $user, string $newHashedPassword): void
510511
{
511512
// set the new hashed password on the User object
512513
$user->setPassword($newHashedPassword);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.