rate limit login API
This commit is contained in:
parent
67e83fc2c7
commit
c72c2bbf72
2
main
2
main
|
@ -252,6 +252,8 @@ def apiuserinfo():
|
||||||
"error": "no authentication"
|
"error": "no authentication"
|
||||||
}, 403
|
}, 403
|
||||||
|
|
||||||
|
|
||||||
|
@limiter.limit("10/minute", override_defaults=False)
|
||||||
@app.route("/api/login", methods=("GET", "POST"))
|
@app.route("/api/login", methods=("GET", "POST"))
|
||||||
def apilogin():
|
def apilogin():
|
||||||
usersession = request.cookies.get("session_DO_NOT_SHARE")
|
usersession = request.cookies.get("session_DO_NOT_SHARE")
|
||||||
|
|
Reference in New Issue