Change app login password to nick9924
This commit is contained in:
parent
a700774463
commit
8453fd801c
@ -60,8 +60,9 @@ CREATE TABLE IF NOT EXISTS Transactions (
|
||||
)
|
||||
""")
|
||||
|
||||
pw_hash = bcrypt.hashpw('nick9924Tucker9924##'.encode(), bcrypt.gensalt()).decode()
|
||||
pw_hash = bcrypt.hashpw('nick9924'.encode(), bcrypt.gensalt()).decode()
|
||||
cursor.execute("INSERT IGNORE INTO Users (Username, PasswordHash) VALUES (%s, %s)", ('nick', pw_hash))
|
||||
cursor.execute("UPDATE Users SET PasswordHash = %s WHERE Username = %s", (pw_hash, 'nick'))
|
||||
|
||||
conn.commit()
|
||||
cursor.close()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user