Browse Source

Exempt logout and reauth from rate limiting

sh4nks 9 years ago
parent
commit
3501e73e19
1 changed files with 2 additions and 0 deletions
  1. 2 0
      flaskbb/auth/views.py

+ 2 - 0
flaskbb/auth/views.py

@@ -100,6 +100,7 @@ def login():
 
 
 @auth.route("/reauth", methods=["GET", "POST"])
+@limiter.exempt
 @login_required
 def reauth():
     """Reauthenticates a user."""
@@ -117,6 +118,7 @@ def reauth():
 
 
 @auth.route("/logout")
+@limiter.exempt
 @login_required
 def logout():
     """Logs the user out."""