-
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
Would it be useful to integrate login with username ? #127
Comments
I just scanned the devise documentation and found this: So it is possible with standard devise, but the process seems to be rather involved. Also, I'm not sure if this gem will require any modifications to accommodate for this kind of setup. And in addition to following the steps from the wiki, a new config option will need to be added to ng-token-auth to specify which params are sent to the sessions controller (i.e. I think the best course of action is to add a test suite that follows the example in the devise wiki. If it works, then that's great, and if not then we can modify this gem as is needed. I'm short on time right now, but I'll get around to it as soon as I can. |
I'm available to do it, but I don't use to work with |
Thanks @nicolas-besnard - I appreciate any help I can get 😃 To get the dev environment set up, you can follow these steps. I recommend the following approach to testing this feature:
Let me know if you run into any trouble! Thanks in advance 👍 |
What happened if validation is required and you sign-in with username ? Email HAS to be present right ? |
Just to clarify, are you asking if an email address is required to use |
Yes, but when a new user register, he should have specified an email, right ? With or without In this case, the unit tests for "confirmation" and "password" are the same, aren't they ? |
I'm not sure about this actually. I don't see any explicit references to an I think devise may rely on the You may need to check the devise source code on this. |
I will dig into it. I usually use At first look, seems like you HAVE TO specify an email on register on I think I'll create a new project to see that in action. |
To run a single test, just type the word |
I just made a PR. The login looks good to me, I need to dig into the registration now. |
@nicolas-besnard - I just merged your PR - this should be fixed as of I pushed everything up to the demo site and it seems to be working there. Let me know if you see any issues. |
Oh and congratulations, you're now an official contributor: 💥 ✨ 💐 |
Has mentionned in #126
The text was updated successfully, but these errors were encountered: