add rate limit to /auth/register
This commit is contained in:
parent
cca23b753c
commit
5b62f5a745
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue