mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-04 06:25:22 +01:00
Fixed some inspection issues
This commit is contained in:
@@ -82,10 +82,10 @@ final class UserRepository extends NamedDBElementRepository implements PasswordU
|
||||
}
|
||||
}
|
||||
|
||||
public function upgradePassword(UserInterface $user, string $newEncodedPassword): void
|
||||
public function upgradePassword(UserInterface $user, string $newHashedPassword): void
|
||||
{
|
||||
if ($user instanceof User) {
|
||||
$user->setPassword($newEncodedPassword);
|
||||
$user->setPassword($newHashedPassword);
|
||||
$this->getEntityManager()->flush();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user