Remove password confirmation; devise

落爺英雄遲暮 提交于 2019-12-23 07:39:20

问题


I am using devise for authentication in my Rails 3.2.6 app. I had password confirmation first but now I want to remove it. How to go about that?


回答1:


You just need to remove the password_confirmation field from your form.

More info in this answer.



来源:https://stackoverflow.com/questions/11641901/remove-password-confirmation-devise

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!