You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@hisea First of all Thank you for your valuable contribution. I have used this gem in my project and it
really helped in cutting down the time it would have required to copy the original devise views and then adapt them to Bootstrap.
Recently I encountered an issue related to Confirmation Instructions being sent to a user after she signs up. The confirmation URL in the instructions (the following code) was generating a link with a link with original (encoded) confirmation token in database, instead of the Devise's friendly (raw) token (as mandated in recent versions of Devise).
This was making the code Devise.token_generator.digest(self, :confirmation_token, confirmation_token) generate an invalid digest based on received token in Devise's confirm_by_token(confirmation_token) method defined in lib/devise/models/confirmable.rb and hence throwing the error. Fixed this error by using the friendly token in the confirmation url. After this fix user was successfully getting confirmed using the correct confirmation url.
this actually already fixed by @steigr long time ago. I didn't got the notification. sorry guys, just closed all pull request and preparing for a version release.
@hisea First of all Thank you for your valuable contribution. I have used this gem in my project and it
really helped in cutting down the time it would have required to copy the original devise views and then adapt them to Bootstrap.
Recently I encountered an issue related to Confirmation Instructions being sent to a user after she signs up. The confirmation URL in the instructions (the following code) was generating a link with a link with original (encoded) confirmation token in database, instead of the Devise's friendly (raw) token (as mandated in recent versions of Devise).
This was making the code
Devise.token_generator.digest(self, :confirmation_token, confirmation_token)
generate an invalid digest based on received token in Devise'sconfirm_by_token(confirmation_token)
method defined inlib/devise/models/confirmable.rb
and hence throwing the error. Fixed this error by using the friendly token in the confirmation url. After this fix user was successfully getting confirmed using the correct confirmation url.The correct confirmation url should be
confirmation_url(@resource, :confirmation_token => @token, locale: I18n.locale)
References:
Please fix this so that others using your gem don't end up in the same problem I faced.
Thanks,
Jiggneshh
The text was updated successfully, but these errors were encountered: