summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-08-06 16:48:36 -0300
committerJesusaves <cpntb1@ymail.com>2022-08-06 16:48:36 -0300
commit395397bf5a3b3df3182c485e93c2193d5e22db52 (patch)
treecf5ea806e816b6d086c4d31b029325c76eeaf5b9
parenta262ece13e1bd6e16717d47a12b6a04329c53b6f (diff)
downloadserver-395397bf5a3b3df3182c485e93c2193d5e22db52.tar.gz
server-395397bf5a3b3df3182c485e93c2193d5e22db52.tar.bz2
server-395397bf5a3b3df3182c485e93c2193d5e22db52.tar.xz
server-395397bf5a3b3df3182c485e93c2193d5e22db52.zip
Fix bug on password creation
-rw-r--r--sql.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql.py b/sql.py
index ac1b50a..9fb0968 100644
--- a/sql.py
+++ b/sql.py
@@ -18,7 +18,7 @@
# SQL Module
import mysql.connector
import uuid, threading, json
-from utils import dlist, Player, stdout, now
+from utils import dlist, Player, stdout, now, create_password
from consts import (SQL_NONE, SQL_DELAY, ERR_OK, ERR_ERR, ERR_BAD, MAX_PARTIES,
SQL_PINGTIME)
@@ -266,7 +266,7 @@ def add_player(xmail):
# TODO: Handle possible collisions
# The original string have 32 letters and we're using only 12
# Since 28-07-2022 we're using 16 letters from all alphabet
- passwd=utils.create_password(16)
+ passwd=create_password(16)
w = db.cursor()