-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Retrieve user using credentials #346
Comments
Yes, there is find_for_authentication. |
Apologies, I didn't know there was a mailing list, do you have a link to it? find_for_authentication just does a find based on attributes, I need a way to determine if the returned user's password is correct. |
Here is the mailing list: http://groups.google.com/group/plataformatec-devise. |
Many thanks, I will use the mailing list in future. |
Spent a good 20 minutes trying to find this information, including wading through the mass of indirection that is the Devise code and looking on the wiki. All I wanted was User.authenticate(identifier, password), not Every Design Pattern Ever Invented(tm). Frustrated now, trying very hard to refrain from using obscenities. |
I find Google very helpful for this sort of thing, particularly 'site:github.com inurl:/issues ', which in this case is quite helpful. |
I have been trying to figure this out for a number of hours and getting nowhere. I basically need to be able to retrieve a user instance based on email and password. I would normally do something like this with Restful Auth
user = User.authenticate('email', 'password')
...however I can't find the equivalent with devise. There may be a different user logged in at this stage who I want to leave logged in and just retrieve another user based on credentials but not affect the session.
The text was updated successfully, but these errors were encountered: