add rate limiting for /auth/mfa

This commit is contained in:
Son 2022-03-21 14:23:35 +01:00
parent a662ef4aee
commit 9dc7cff87f
1 changed files with 2 additions and 0 deletions

View File

@ -7,11 +7,13 @@ from app.api.base import api_bp
from app.config import FLASK_SECRET
from app.db import Session
from app.email_utils import send_invalid_totp_login_email
from app.extensions import limiter
from app.log import LOG
from app.models import User, ApiKey
@api_bp.route("/auth/mfa", methods=["POST"])
@limiter.limit("10/minute")
def auth_mfa():
"""
Validate the OTP Token