I have a registration/edit form that is rendered through a Devise::RegistrationsController
within my application. The way it works now you must provide your current password when making any updates to the form. They way I want it to work is that the current_password
is only required when you are updating the password
field... or you must repeat the "new_password" as a means of confirmation. I have done some reading on the Devise Wiki, mainly the following links and they don't seem to list a solution for this. If anyone has some insight on how this might be achieved I would appreciate it.
https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-edit-their-password