-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Issue validating invite token #6255
Comments
Hey @ajubin, Is there any difference between the link copied manually and the link clicked? |
Hey @ajubin, Did you have a chance to check this? I have just given it a test on my local install and it is working as expected. |
Hello, I forgot to hit the send button, sorry 🥺 Indeed I do have a difference in the link copied manually and the link clicked.
So it seems that sendgrid is messing up with the URL Params. There's should be a settings on their side to disable URL tracking and shortening or maybe there's something wrong with their URL params replacement [EDIT] |
Hey @ajubin, I have had a chat internally and it looks like that parameter is only for Sendgrid and if we make the change to work around an issue with their tracking we would also open the doors to implement similar one off changes for other providers in the future. Instead a better solution would be to use custom email templates which can be done with Let me know if you have any questions about this one, You can find more information on those 2 options here: https://docs.n8n.io/hosting/environment-variables/environment-variables/#user-management-and-smtp and the default templates we use are here: https://github.com/n8n-io/n8n/tree/master/packages/cli/src/UserManagement/email/templates |
Ok, I understand the reason, sadly there is no convention to disable tracking on email :) I created gists here https://gist.github.com/ajubin/ddacbd212f231ef58c5f00c2d239cd76 to host html templates [EDIT] I've added the following env var According to this file I'm running this on heroku with 1-click deploy, I don't know if I can but I guess this is out of your scope now |
Hey @ajubin, You would need to store the files locally to the container, if Heroku allows files you could mount a volume to the container and you should be good to go. |
Hey @ajubin, I am going to mark this as closed for now, Hopefully you have your templates working now. |
thanks again :) |
Describe the bug
I've just launched an instance of n8n on Heroku using this deployment process https://github.com/muzzo-tech/n8n-heroku/
Before inviting user, I setup SMTP with Sendgrid
Then I invited user, they received the mail, but when they clicked on the link to create their account, they saw this error
![image](https://private-user-images.githubusercontent.com/14874974/238394750-3a649bb5-ef1c-4c5b-a540-75d399a0f3ce.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIzNzY2NjMsIm5iZiI6MTcyMjM3NjM2MywicGF0aCI6Ii8xNDg3NDk3NC8yMzgzOTQ3NTAtM2E2NDliYjUtZWYxYy00YzViLWE1NDAtNzVkMzk5YTBmM2NlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzMwVDIxNTI0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUwZTRiODZmM2M4ZDhkYmNkODYzYjhmM2FkOTE4YmE5MmIyNmFkOWQyMWE1MWQ3NzZjZDUzYzdjODQ0MDY1ODMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.PuzKfIAFgfEICFrAx1orxkeAoDDzzRyWCr2cjONODf4)
The workaround I found is to copy/paste the link in the invite email instead of clicking on it. Then they can create their account with no error
Expected behavior
When I click on the link, I can create an account with no error
Environment (please complete the following information):
Additional context
Maybe sendgrid add additionnal tracking on links that strips some info in the link
The text was updated successfully, but these errors were encountered: