loading...

re: How to manually change the password using Devise VIEW POST

FULL DISCUSSION
 

Or you can use Devise::Recoverable#reset_password:

 User.find(id).reset_password(password, password)

If you're not using Devise::Recoverable, you can at least assign both passwords in one go:

user.password = user.password_confirmation = 'new password'
 

I see!! Thank you for your comment.

Code of Conduct Report abuse