Very short/long usernames are not acceptible

This commit is contained in:
Jeremy Zhang 2017-04-04 05:57:51 +00:00
parent 90179c495a
commit 8a441720a0

View File

@ -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):