mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-06-16 19:35:24 +02:00
Change guest ratelimits to create 3 times per 30mins and lower time to change username to 10mins
This commit is contained in:
@ -271,7 +271,7 @@ def post():
|
||||
return response
|
||||
|
||||
@api.route("/create_unauthenticated_user", methods=["POST"])
|
||||
@rate_limiter.limit("1 per 15 minute", key_func=guild_ratelimit_key)
|
||||
@rate_limiter.limit("3 per 30 minute", key_func=guild_ratelimit_key)
|
||||
def create_unauthenticated_user():
|
||||
session['unauthenticated'] = True
|
||||
username = request.form['username']
|
||||
@ -307,7 +307,7 @@ def create_unauthenticated_user():
|
||||
return response
|
||||
|
||||
@api.route("/change_unauthenticated_username", methods=["POST"])
|
||||
@rate_limiter.limit("1 per 15 minute", key_func=guild_ratelimit_key)
|
||||
@rate_limiter.limit("1 per 10 minute", key_func=guild_ratelimit_key)
|
||||
def change_unauthenticated_username():
|
||||
username = request.form['username']
|
||||
guild_id = request.form['guild_id']
|
||||
|
Reference in New Issue
Block a user