django-hunger
django-hunger copied to clipboard
Verify invite code and redirect to correct view
The hunger/verify/
redirect now to the correct view.
This case should be handled in the middleware, which should redirect the user to the page. What is the problem you're running into here?
My problem was in following case: If the visitor not signed-in than he got the message "Your invite key is correct" but after he sign-in the code is maybe incorrect because there are no remaining invites anymore.
Perhaps a better approach is to make the verify_invite view login_required, so that the key cannot be verified without signed in status?
Yes this would be the better user experience.