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

invitation_accepted_at should be nil if the user signs up #762

Open
krue-doug opened this issue Jun 13, 2018 · 1 comment
Open

invitation_accepted_at should be nil if the user signs up #762

krue-doug opened this issue Jun 13, 2018 · 1 comment

Comments

@krue-doug
Copy link

I noticed that if there is a pending invite and if the user doesn't go through the link and signs up normally then the invite is marked as accepted. The invite should only be marked as accepted if and only they set the password through the invitation link. Any suggestions for making this so?

@scambra
Copy link
Owner

scambra commented Jun 13, 2018

You may change line 10 in registrations controller, to clear invitation token. Some tests may need changes.

https://github.com/scambra/devise_invitable/blob/master/app/controllers/devise_invitable/registrations_controller.rb#L10

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