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
Different invitation token -> invitation token is invalid #410
Comments
Did you write your own mail view? Devise 3.1 changed how token are persisted, now an encrypted token is persisted so mail view must use @token instead of resource.invitation_token. |
Yes, here is what was in the mailer/invitation_instructions.html.haml view:
After changining it as follows:
it worked as needed. THANKS a lot Sergio. |
@javix 💯 |
qmaruf
added a commit
to qmaruf/privly-web
that referenced
this issue
Dec 25, 2015
…how token is persisted. Ref: scambra/devise_invitable#410
This was referenced Dec 25, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can"t figure out the reason of the error "The invitation token provided is not valid!" when a User clicked on the linked received by email.
I could see that tokens in params and User search were different:
Now in the generated query the token is different:
The code seems to be in devise/invitations_controller:
I'm on Rails 4, devise 3.1.2, devise_invitable 1.3.1. Did I miss something in devise configuration? I commented the following line in devise.rb initialiser:
Any idea? Thnx
The text was updated successfully, but these errors were encountered: