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

HowTo: Manually resend invite #874

Closed
SylarRuby opened this issue Jun 19, 2022 · 2 comments
Closed

HowTo: Manually resend invite #874

SylarRuby opened this issue Jun 19, 2022 · 2 comments

Comments

@SylarRuby
Copy link

SylarRuby commented Jun 19, 2022

Hi all. Not an issue but was wondering if there was an option for manually resend an invitation? Been looking at the controller but cannot see how to manually resend.

Do I need to create a PR for this or it's there somewhere already done?

Thanks

@scambra
Copy link
Owner

scambra commented Jun 23, 2022

If a user tries to invitate an already invited user, and resend_invitation is enabled, new invitation will be sent.

Also you can get the invited user record and call invite!

In both cases, new invitation token is generated, as Devise changed to save a hash of tokens for better security, so raw token is not available to send an email with the same token.

If you want both old and new invitations to work, DeviseInvitable needs to save invitation info in a different table, so an user can have many invitations and all tokens work, as requested few times, e.g. #869 and linked issues, but I couldn't work on it before.

@SylarRuby
Copy link
Author

Thanks. I guess this would do. I'll reopen if I'm struggling but should be straight forward.

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