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

Ensure correct state of invitation_token/invitation_accepted_at fields. #758

Merged
merged 2 commits into from Jun 13, 2018
Merged

Ensure correct state of invitation_token/invitation_accepted_at fields. #758

merged 2 commits into from Jun 13, 2018

Conversation

bradleypriest
Copy link
Contributor

Ensure that invitation_token/invitation_accepted_at fields are rolled back on a failed accept, otherwise the user is left in a state where invitation_accepted? is true, but the user is invalid.

This issue was exposed by the recent fix that set @accepting_invitation to false after finishing accepting.

…ed back on a failed `accept`, otherwise the user is left in a state where `invitation_accepted?` is true, but the user is invalid.

This issue was exposed by the recent fix that set `@accepting_invitation` to false after finishing accepting.
@scambra scambra merged commit 61cd578 into scambra:master Jun 13, 2018
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

Successfully merging this pull request may close these issues.

None yet

2 participants