In Devise, by default the user is required to add their current password when changing their email and has to have password confirmation for changing their password.
Is there a way where I can just have:
Change Email
Email
Confirm button
Change Password
Current password
New password
Confirm button
Do I have to edit the controller or can I just remove the form elements?
If I do have to edit the controller, which part do I change?
是的,我认为Wiki涵盖了您在这里寻找的内容: https : //github.com/plataformatec/devise/wiki/How-To : -Allow-users-to-edit-their-account-without-providing-密码
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.