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

change devise method to reset password by token #957

Merged
merged 3 commits into from
Oct 21, 2017

Conversation

dks17
Copy link
Contributor

@dks17 dks17 commented Sep 14, 2017

When I clicks the link in the email, which brings me to password reset (get /password/edit)
every time I catch error ( password: 'can't be blank') in @resource instance.

It appears from reset_password_by_token when reset_password is called.

In this case I guess using with_reset_password_token method lighter (checks only token and doesn't pass the error).

@zachfeldman
Copy link
Contributor

Seems sane. Marked as easy to merge for hopefully faster review.

@MaicolBen
Copy link
Collaborator

Yeah, you're right, I just printed the errors of the model in the tests and it includes the password error.

@MaicolBen MaicolBen merged commit 3d15588 into lynndylanhurley:master Oct 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants