Closed chrismear closed 10 years ago
This is something to do with the invitation system. The way it's supposed to work is:
If the member then tries to use their invitation link again, the system should not find the member record because the invitation code has been cleared, and so it should take them to the home page to log in instead.
My hunch is that, for some reason, the invitation code is not being cleared when the invitation is accepted. So, if a member tries to use their invitation link again, the app finds the member record, and starts trying to take the user through the sign-up process again. But this then fails, since you can't move a member from 'active' to 'active', resulting in the error above.
So we need two fixes. First, make sure the invitation code actually gets cleared. Second, adjust the invitation flow so that if it finds a member that is already active, it doesn't try to go through the invitation process again; it just takes them straight to the login screen.
Fixes applied to master
and coop
branches.