Module | Devise::Models::Recoverable::ClassMethods |
In: |
lib/devise/models/recoverable.rb
|
Attempt to find a user by its reset_password_token to reset its password. If a user is found and token is still valid, reset its password and automatically try saving the record. If not user is found, returns a new user containing an error in reset_password_token attribute. Attributes must contain reset_password_token, password and confirmation