Open mn6893 opened 6 years ago
I don't think this is a bug, this is how the default UserProvider works (take a look in Tymon\JWTAuth \JWTGuard::attempt()
, it ends up calling $this->provider->validateCredentials()
.) You need some way to ensure the user is who they say they are ("authenticating" the user's credentials), and the default way of doing that is through a password.
If you are using "passwordless" authN (eg DarkGhostHunter/Passless), you authenticate the user's credentials by checking the temporary token that was sent to their email or phone is the same one as they are presenting to you in your login route (or that the signed route is valid, in the case of Passless). In that case, use the login()
method instead of attempt()
.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Login without password - Undefined Index password
I want to login using emailid and userid, not with password. When i try login with emailid and userid, i'm getting "undefined index:password". It seems that "JWTAuth:attempt" is looking for password. But in my case i don't want to login with password.
Help!!
Your environment