-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
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
Sign in via phone number doesn't seem to work correctly #563
Comments
Just some information and a +1 for improving functionality for signing in with something other than email (or improving information/examples about doing so). My app is set up to login using username (because I don't want to require use of an email address on my app) and I encounter this problem as well. I haven't dug into it too deeply yet but I have been able to get sign in via POST request to work with username and password, but the User object does need to have a valid email address attribute. User objects also don't save from console without a valid email. I expect this is happening because there's a validation happening with devise_token_auth somewhere that I haven't tracked down yet. My sign in via POST request returns all the headers expected, and sets the |
Hello, it seems that the plugin does not handle multiple authentication_keys correctly. |
Has anyone figured this out? |
I got a login via phone number
My User.rb
My migrate devise
My application_controller.rb
I solved the problem and everything works as it should, I think so 💰😊 |
@ceo-ooo-ooo it works! Nice! Thank you! |
Then I change the form to pass "telephone" and "password" to the server and I get Status 403 Forbidden.
i have follow this how to ==> https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-sign-in-with-something-other-than-their-email-address
The JSON response is:
My user.rb:
My application_controller:
The text was updated successfully, but these errors were encountered: