Devise, allowing users to change passwords

后端 未结 3 1843
攒了一身酷
攒了一身酷 2021-01-12 07:04

I have an application that has a custom registration controller, called users_controller, for devise because only Admin is able to create users. I want to allow users to ch

3条回答
  •  臣服心动
    2021-01-12 07:35

    This is not enough, tough. You'll have to add attr_accessor :current_password to the model, like explained in here.

提交回复
热议问题