Invalid credential [closed]

  credentials, symfony

I’m on symfony 4.42 and get the error "Invalid credential" trying to login.
I’m following the official doc and don’t, after try to resolve it, where I’m wrong.

In my LoginAuthenticator, this is the method I think is making me be in trouble.

public function checkCredentials($credentials, UserInterface $user)
    return $this->passwordEncoder->isPasswordValid($user, $credentials['password']);

// $password = $credentials[‘password’];

And I suppose that the problem is coming from "CheckCredential", but until now with all I tryed there is no change.
Thanks for help

Source: Symfony Questions