Devise: Disable password confirmation during sign-up

后端 未结 9 1091
走了就别回头了
走了就别回头了 2020-12-24 01:13

I am using Devise for Rails. In the default registration process, Devise requires users to type the password twice for validation and authentication. How can I disable it?

9条回答
  •  渐次进展
    2020-12-24 01:45

    It seems if you just remove the attr_accessible requirement from the model it works just fine without it.

    On a side note, I agree with this practice, in the rare case there was a typo, the user can simply use the password recovery to recover their password.

提交回复
热议问题