-
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
Reset Password error #59
Comments
@markusklooth - which version of Devise are you using? Can you upgrade to the latest version and see if the problem persists? |
Ive tested it with 3.2.0 and 3.2.4. |
I think I might be relying on a method that was introduced in 3.3. Can you try 3.3 or later? |
Yes, it works in a later version. |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When resetting a password, I get the following error:
NameError (undefined local variable or method
set_reset_password_token' for #<User:0x007fb039af9e98>): activemodel (4.1.6) lib/active_model/attribute_methods.rb:435:in
method_missing'activerecord (4.1.6) lib/active_record/attribute_methods.rb:211:in
method_missing' devise_token_auth (0.1.29.beta7) app/models/devise_token_auth/concerns/user.rb:56:in
send_reset_password_instructions'....
It does not find the method
set_reset_password_token
that is called fromsend_reset_password_instructions
.I'm using devise version 3.2.0.
Can't you just call the
raw, enc = Devise.token_generator.generate(self.class, :reset_password_token)
to generate the token?
The text was updated successfully, but these errors were encountered: