Closed JSiu closed 11 years ago
Talk to @jlowdermilk as necessary to make sure we correctly remove them from their existing house if they confirm that they want to switch.
@jlowdermilk Is there a way to test the validity of an invite without accepting?
@creisman: there is. Look at InviteManager
in models.py
. Basically, you look up the inviteprofile by the sha1 in the link (the invite_key). If it exists, is not expired and the emails match, it's a valid invite.
If a user is invited to a house, but they're already a member of a different house, the link in the invitation email should take them to a page that asks them to confirm that they want to leave their house and join the other. Saying either yes or no should redirect them to their dashboard page.