mirror of
https://github.com/simple-login/app.git
synced 2024-11-13 07:31:12 +01:00
Further limit the index endpoint (#1950)
This commit is contained in:
parent
31896ff262
commit
f81f8ca032
2 changed files with 2 additions and 2 deletions
|
@ -73,7 +73,7 @@ def get_aliases():
|
|||
|
||||
@api_bp.route("/v2/aliases", methods=["GET", "POST"])
|
||||
@limiter.limit(
|
||||
"15/minute",
|
||||
"5/minute",
|
||||
)
|
||||
@require_api_auth
|
||||
def get_aliases_v2():
|
||||
|
|
|
@ -58,7 +58,7 @@ def get_stats(user: User) -> Stats:
|
|||
exempt_when=lambda: request.form.get("form-name") != "create-random-email",
|
||||
)
|
||||
@limiter.limit(
|
||||
"10/minute",
|
||||
"5/minute",
|
||||
methods=["GET"],
|
||||
)
|
||||
@login_required
|
||||
|
|
Loading…
Reference in a new issue