-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The UserProviderInterface has a |
Beta Was this translation helpful? Give feedback.
-
@dbrumann thank you , solved using : public function refreshUser(UserInterface $user)
{
$identifier = $user->getUserIdentifier();
$user = $this->userRepository->findOneBy(['email' => $identifier]);
if (!$user instanceof User) {
throw new UnsupportedUserException(sprintf('Invalid user class "%s".', get_class($user)));
}
if ($user === null) {
throw new UserNotFoundException(sprintf('User with id %s not found', json_encode($user)));
}
return $user;
} |
Beta Was this translation helpful? Give feedback.
@dbrumann thank you , solved using :