summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-08-06 16:51:39 -0300
committerJesusaves <cpntb1@ymail.com>2022-08-06 16:51:39 -0300
commit1188010bd48e75ef79fa9acd1424513e8599e31e (patch)
tree1d036148ae878d9d00d012e3d86eda136ca0c093
parent395397bf5a3b3df3182c485e93c2193d5e22db52 (diff)
downloadserver-1188010bd48e75ef79fa9acd1424513e8599e31e.tar.gz
server-1188010bd48e75ef79fa9acd1424513e8599e31e.tar.bz2
server-1188010bd48e75ef79fa9acd1424513e8599e31e.tar.xz
server-1188010bd48e75ef79fa9acd1424513e8599e31e.zip
I overlooked the fact passwords can now be either 12 or 16 chars long
-rw-r--r--player.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/player.py b/player.py
index 49d5a8a..685f8b4 100644
--- a/player.py
+++ b/player.py
@@ -350,7 +350,7 @@ def get_data(args, token):
passwd=y["passwd"]
if not passwd.isalnum():
raise Exception("Illegal password")
- if len(passwd) != 12:
+ if len(passwd) not in [12, 16]:
raise Exception("Illegal password")
vs=str(y["version"])
except: