diff --git a/setup_db.py b/setup_db.py index d74273b..a55b8ed 100644 --- a/setup_db.py +++ b/setup_db.py @@ -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()