forked from rDrama/rDrama
parent
4385bafa85
commit
449c8b51cb
|
@ -80,8 +80,8 @@ def login_deduct_when(resp):
|
||||||
return g.login_failed
|
return g.login_failed
|
||||||
|
|
||||||
@app.post("/login")
|
@app.post("/login")
|
||||||
@limiter.limit("6/minute;10/day", deduct_when=login_deduct_when)
|
@limiter.limit("6/minute;10/day",
|
||||||
@limiter.limit("6/minute;10/day", key_func=lambda:request.values.get("username").lower(), deduct_when=login_deduct_when)
|
deduct_when=login_deduct_when)
|
||||||
def login_post():
|
def login_post():
|
||||||
template = ''
|
template = ''
|
||||||
g.login_failed = True
|
g.login_failed = True
|
||||||
|
|
Loading…
Reference in New Issue