add rate limit to /auth/register

This commit is contained in:
Son 2022-02-07 18:45:41 +01:00
parent cca23b753c
commit 5b62f5a745

View file

@ -72,6 +72,9 @@ def auth_login():
@api_bp.route("/auth/register", methods=["POST"])
@limiter.limit(
"10/minute", deduct_when=lambda r: hasattr(g, "deduct_limit") and g.deduct_limit
)
def auth_register():
"""
User signs up - will need to activate their account with an activation code.