-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check_current_password_before_update still requires password when resetting password #526
Comments
I've run into the same issue when trying to handle the password reset workflow. Any suggestions? |
I see this
inside of but |
Hmm just overrode the controller. Edit sets Looking for ways around this, only way I can think of is to use a class variable a temporary solution. However, this does not seem ideal since multiple users toggling this could result in some bad collisions. |
Checked. This situation is not covered by unit tests and is not used in the demo code |
Currently going to solve by passing another |
I have
config.check_current_password_before_update = :password
enabled. So when the user updates his/her password, thecurrent_password
field is required. This becomes a problem when implementingPassword reset
because the user does not know his/her current password. How do I bypass this and still require thecurrent_password
when the user is not resetting his/her password?The text was updated successfully, but these errors were encountered: