Disable Invalid Unlock Token Account Unlock

I have a standard implementation. Everything works, except for unlocking the account (fixing works fine).

I can unlock accounts in the console using unlock_access! . I can also find the account using User.find_by_unlock_token . However, UnlocksController#show - in particular, resource_class.unlock_access_by_token(params[:unlock_token]) - returns the error "Unlock token is invalid".

Any help would be greatly appreciated. Thanks!

+8
ruby-on-rails devise
source share
1 answer

This was a problem with a missed update for Devise. In the mailer template, @resource.unlock_token changed to @token . Working!

+18
source share

All Articles