Thursday, 12 September 2013

Devise - how to require password if changing password

Devise - how to require password if changing password

I have a Rails 3 app and I want to show 4 fields:
current password current password confirm new password new password confirm
as well as a bunch of other fields for the user, and I only want to
require the user to enter their current password if they enter a new
password. However, I cannot find how to do this in Devise. What are the
attributes of Devise to let me do this?

No comments:

Post a Comment