diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-07-28 20:48:08 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-07-28 20:48:08 -0300 |
commit | d888ce354d52c1dcb8963646bf528e4aee560c0c (patch) | |
tree | 7d9860951557888470260ddc2b9bd7a7e4f1c013 /sql.py | |
parent | 5333221ff7b4197cf1aca20d74bb1cc04e686aab (diff) | |
download | server-d888ce354d52c1dcb8963646bf528e4aee560c0c.tar.gz server-d888ce354d52c1dcb8963646bf528e4aee560c0c.tar.bz2 server-d888ce354d52c1dcb8963646bf528e4aee560c0c.tar.xz server-d888ce354d52c1dcb8963646bf528e4aee560c0c.zip |
Update password generation to cover whole alphabet and have 16 instead of 12 chars
New format: XXXX-XXXX-XXXX-XXXX
Which is longer, more annoying, but harder to have collision
Diffstat (limited to 'sql.py')
-rw-r--r-- | sql.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -265,7 +265,8 @@ def clobber_email(userid, oldmail, newmail): def add_player(xmail): # TODO: Generate password using the whole alphabet. # The original string have 32 letters and we're using only 12 - passwd=uuid.uuid4().hex[:12].upper() + # Since 28-07-2022 we're using 16 letters from all alphabet + passwd=utils.create_password(16) w = db.cursor() |