mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Very short/long usernames are not acceptible
This commit is contained in:
parent
90179c495a
commit
8a441720a0
@ -193,6 +193,8 @@ def create_unauthenticated_user():
|
||||
username = request.form['username']
|
||||
guild_id = request.form['guild_id']
|
||||
ip_address = get_client_ipaddr()
|
||||
if len(username) < 2 or len(username) > 32:
|
||||
abort(406)
|
||||
if not check_guild_existance(guild_id):
|
||||
abort(404)
|
||||
if not guild_query_unauth_users_bool(guild_id):
|
||||
|
Loading…
Reference in New Issue
Block a user