How can I simply verify that a username and password are correct with Devise and Rails 3

Viewed 14680

I am using Devise and Rails 3.

I want to call a function that will simply verify that a user's username and password combination is correct without actually logging in that user. Is there some way I can accomplish something like this with Devise:

User.authenticate(params[:username], params[:password])
4 Answers
Related