开发者

How to get rid of devise current password requirement when editing a user?

开发者 https://www.devze.com 2023-01-16 12:55 出处:网络
I\'ve followed the instructions here: http://github.com/plataformatec/devise/wiki/How-to-edit-user-form-without-current-password

I've followed the instructions here:

http://github.com/plataformatec/devise/wiki/How-to-edit-user-form-without-current-password

But it seems to ignore that and still validate and require current pa开发者_开发百科ssword.

In fact, I can do whatever I want to app/controllers/registrations_controller.rb including putting tonnes of syntax errors in, and it still asks for the current password to be present.

What am I missing?


Hard to quess, as you pasted no code, but it looks like you need to point devise to a different controller:

devise_for :user, :controllers => { :sessions => "..." }
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号