I'm trying to create password rules to devise recoverable password change. I did a super class via passwords_controller.rb, but I need to check the user role before aply the rules, but all that I have there is the reset_password_token.
Assuming your model is User:
User.with_reset_password_token(your_token_here)
Source
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With