Skip to content
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

append two invitation_token keys in invitation url #774

Open
anand-rajput opened this issue Sep 25, 2018 · 2 comments
Open

append two invitation_token keys in invitation url #774

anand-rajput opened this issue Sep 25, 2018 · 2 comments

Comments

@anand-rajput
Copy link

/users/invitation/accept?invitation_token=mNTJW_yyeyQpx6Ncs-17?invitation_token=mNTJW_yyeyQpx6Ncs-17

@scambra
Copy link
Owner

scambra commented Sep 26, 2018

Have you changed mailer view? Default mailer view uses accept_invitation_url(@resource, :invitation_token => @token), I don't understand how rails may add token twice.
https://github.com/scambra/devise_invitable/blob/master/app/views/devise/mailer/invitation_instructions.html.erb#L5

@anand-rajput
Copy link
Author

anand-rajput commented Sep 26, 2018

Yes, I used this in mailer view ...

<a href="<%= accept_invitation_url(@resource, :invitation_token => @token) %>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants