mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 09:53:35 +02:00
Fixed error preventing the service container from compiling
This commit is contained in:
parent
55641a234c
commit
c24019fd57
5 changed files with 10 additions and 9 deletions
|
@ -24,6 +24,7 @@ namespace App\Repository;
|
|||
|
||||
use App\Entity\UserSystem\User;
|
||||
use Doctrine\ORM\NonUniqueResultException;
|
||||
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
|
||||
use Symfony\Component\Security\Core\User\PasswordUpgraderInterface;
|
||||
use Symfony\Component\Security\Core\User\UserInterface;
|
||||
|
||||
|
@ -82,7 +83,7 @@ final class UserRepository extends NamedDBElementRepository implements PasswordU
|
|||
}
|
||||
}
|
||||
|
||||
public function upgradePassword(UserInterface $user, string $newHashedPassword): void
|
||||
public function upgradePassword(UserInterface|PasswordAuthenticatedUserInterface $user, string $newHashedPassword): void
|
||||
{
|
||||
if ($user instanceof User) {
|
||||
$user->setPassword($newHashedPassword);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue