made passwrd lowercase
This commit is contained in:
parent
e92044ec1b
commit
449056d2d2
@ -6,7 +6,7 @@ def _create_tables(con: mariadb.Connection) -> None:
|
|||||||
cursor.execute(
|
cursor.execute(
|
||||||
"""CREATE TABLE IF NOT EXISTS master_pass (user_id INT,
|
"""CREATE TABLE IF NOT EXISTS master_pass (user_id INT,
|
||||||
salt BINARY(64),
|
salt BINARY(64),
|
||||||
PASSWD BINARY(64),
|
passwd BINARY(64),
|
||||||
PRIMARY KEY(user_id)
|
PRIMARY KEY(user_id)
|
||||||
)"""
|
)"""
|
||||||
)
|
)
|
||||||
@ -25,7 +25,7 @@ def _create_tables(con: mariadb.Connection) -> None:
|
|||||||
def _create_index(con: mariadb.Connection) -> None:
|
def _create_index(con: mariadb.Connection) -> None:
|
||||||
cursor = con.cursor()
|
cursor = con.cursor()
|
||||||
cursor.execute(
|
cursor.execute(
|
||||||
"""CREATE INDEX IF NOT EXISTS user_id_to_acc on accounts(user_id)
|
"""CREATE OR REPLACE INDEX user_id_to_acc on accounts(user_id)
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user