django-hunger icon indicating copy to clipboard operation
django-hunger copied to clipboard

Verify invite code and redirect to correct view

Open jarus opened this issue 11 years ago • 4 comments

The hunger/verify/ redirect now to the correct view.

jarus avatar Oct 25 '13 12:10 jarus

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?

yesimon avatar Oct 26 '13 04:10 yesimon

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.

jarus avatar Oct 26 '13 11:10 jarus

Perhaps a better approach is to make the verify_invite view login_required, so that the key cannot be verified without signed in status?

yesimon avatar Oct 26 '13 16:10 yesimon

Yes this would be the better user experience.

jarus avatar Oct 26 '13 16:10 jarus