made passwrd lowercase

This commit is contained in:
StNicolay 2022-10-05 14:38:00 +03:00
parent e92044ec1b
commit 449056d2d2

View File

@ -6,7 +6,7 @@ def _create_tables(con: mariadb.Connection) -> None:
cursor.execute(
"""CREATE TABLE IF NOT EXISTS master_pass (user_id INT,
salt BINARY(64),
PASSWD BINARY(64),
passwd BINARY(64),
PRIMARY KEY(user_id)
)"""
)
@ -25,7 +25,7 @@ def _create_tables(con: mariadb.Connection) -> None:
def _create_index(con: mariadb.Connection) -> None:
cursor = con.cursor()
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)
"""
)