简体   繁体   English

设计允许用户更改带有密码和密码确认的电子邮件

[英]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. 在Devise中,默认情况下,要求用户在更改电子邮件时添加其当前密码,并且必须具有密码确认才能更改密码。

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? 如果必须编辑控制器,我应该更改哪一部分?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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