I have a standard devise implementation. Everything is working except for account unlocking (locking works fine).
I can unlock accounts in the console using unlock_access!
. I can also locate the account using User.find_by_unlock_token
. However, UnlocksController#show
- specifically, resource_class.unlock_access_by_token(params[:unlock_token])
- returns an "Unlock token is invalid" error.
Any help would be be much appreciated. Thanks!
This was a problem with a missed update to Devise. In the mailer template, @resource.unlock_token
changed to @token
. Works!
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