From 8453fd801cb2ccfd702de064b3a74a0c51b95794 Mon Sep 17 00:00:00 2001 From: Nick Tonjum Date: Mon, 27 Jul 2026 21:11:28 -0500 Subject: [PATCH] Change app login password to nick9924 --- setup_db.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()