Permalink
Browse files

Add @anonymous_user_required to register endpoint. Fixes #212

  • Loading branch information...
1 parent 316d945 commit 2e57734d1fe21601895836375fd9e3dd7847ca96 @mattupstate committed Jan 24, 2014
Showing with 2 additions and 0 deletions.
  1. +1 −0 flask_security/views.py
  2. +1 −0 tests/configured_tests.py
@@ -98,6 +98,7 @@ def logout():
get_url(_security.post_logout_view))
+@anonymous_user_required
def register():
"""View function which handles a registration request."""
@@ -347,6 +347,7 @@ def test_confirm_email_of_user_different_than_current_user(self):
with capture_registrations() as registrations:
self.register(e1)
+ self.logout()
self.register(e2)
token1 = registrations[0]['confirm_token']
token2 = registrations[1]['confirm_token']

0 comments on commit 2e57734

Please sign in to comment.