We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I am trying to log a user via username + password and if these credentials are wrong I get a error as below:
ErrorException Undefined index: email vendor/myth/auth/src/Authentication/LocalAuthenticator.php at line 25
$this->recordLoginAttempt($credentials['email'], $ipAddress, $this->user->id ?? null, false);
I allow to credential via (Config/Auth.php)
public $validFields = [ 'email', 'username' ];
The text was updated successfully, but these errors were encountered:
This was changed a while back.
The line you mention (:25) should be:
$this->recordLoginAttempt($credentials['email'] ?? $credentials['username'], $ipAddress, $this->user->id ?? null, false);
Sorry, something went wrong.
Probably using the beta release instead of branch develop. @MichalPB1 if that’s the case can you update and try again?
develop
Yes, you're right. Thanks 👍
No branches or pull requests
Hi,
I am trying to log a user via username + password and if these credentials are wrong I get a error as below:
I allow to credential via (Config/Auth.php)
The text was updated successfully, but these errors were encountered: