Skip to content

Commit 2449c72

Browse files
committed
[Security] Do not make PasswordUpgraderInterface a generic
1 parent cc8ffcf commit 2449c72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Security/User/EntityUserProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function upgradePassword(PasswordAuthenticatedUserInterface $user, string
125125
}
126126

127127
$repository = $this->getRepository();
128-
if ($repository instanceof PasswordUpgraderInterface) {
128+
if ($user instanceof PasswordAuthenticatedUserInterface && $repository instanceof PasswordUpgraderInterface) {
129129
$repository->upgradePassword($user, $newHashedPassword);
130130
}
131131
}

0 commit comments

Comments
 (0)