简体   繁体   中英

Devise allow user to change email with password and password confirmation

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?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM