2
0
mirror of https://github.com/codl/forget synced 2025-01-03 18:59:23 +01:00

make rate limits more lenient on user-facing pages

This commit is contained in:
codl 2017-09-16 20:04:47 +02:00
parent 0b06b5f12f
commit 8d82780e32
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A

View File

@ -45,7 +45,7 @@ def index():
@app.route('/login/twitter')
@limiter.limit('3/minute')
@limiter.limit('10/minute')
def twitter_login_step1():
try:
return redirect(lib.twitter.get_login_url(
@ -73,7 +73,7 @@ def login(account_id):
@app.route('/login/twitter/callback')
@limiter.limit('3/minute')
@limiter.limit('10/minute')
def twitter_login_step2():
try:
oauth_token = request.args['oauth_token']