bool checkCredentials(mixed $credentials, UserInterface $user)
Returns true if the credentials are valid.
If any value other than true is returned, authentication will fail. You may also throw an AuthenticationException if you wish to cause authentication to fail.
The credentials are the return value from getCredentials()
Please login to continue.