Skip to content
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

Closed
markusklooth opened this issue Oct 30, 2014 · 4 comments
Closed

Reset Password error #59

markusklooth opened this issue Oct 30, 2014 · 4 comments

Comments

@markusklooth
Copy link

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:inmethod_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:insend_reset_password_instructions'
....
It does not find the method set_reset_password_token that is called from send_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?

@lynndylanhurley
Copy link
Owner

@markusklooth - which version of Devise are you using? Can you upgrade to the latest version and see if the problem persists?

@markusklooth
Copy link
Author

Ive tested it with 3.2.0 and 3.2.4.

@lynndylanhurley
Copy link
Owner

I think I might be relying on a method that was introduced in 3.3. Can you try 3.3 or later?

@markusklooth
Copy link
Author

Yes, it works in a later version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants