forked from MarseyWorld/MarseyWorld
remove redundant ratelimits in /login
parent
b816973f38
commit
e41ee21f2b
|
@ -80,7 +80,7 @@ def login_deduct_when(resp):
|
||||||
return g.login_failed
|
return g.login_failed
|
||||||
|
|
||||||
@app.post("/login")
|
@app.post("/login")
|
||||||
@limiter.limit("1/5 seconds;6/minute;15/hour;15/day",
|
@limiter.limit("6/minute;15/day",
|
||||||
deduct_when=login_deduct_when)
|
deduct_when=login_deduct_when)
|
||||||
def login_post():
|
def login_post():
|
||||||
template = ''
|
template = ''
|
||||||
|
|
Loading…
Reference in New Issue