increase /login limit from 10/day to 20/day

pull/171/head
Aevann 2023-07-18 20:31:05 +03:00
parent f192720dcf
commit d613bca1c9
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ def login_get(v:Optional[User]):
@app.post("/login")
@limiter.limit('1/second', scope=rpath)
@limiter.limit("6/minute;10/day", deduct_when=lambda response: response.status_code < 400)
@limiter.limit("6/minute;20/day", deduct_when=lambda response: response.status_code < 400)
@auth_desired
def login_post(v:Optional[User]):
if v: abort(400)