From 81032ec29954609f103265ebc81df6c624e7799f Mon Sep 17 00:00:00 2001 From: Pancakes Date: Thu, 24 Apr 2025 16:00:54 -0400 Subject: [PATCH] Fix query in UpdateAccountPassword --- db/account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/account.go b/db/account.go index 8a98f5a..789d2f9 100644 --- a/db/account.go +++ b/db/account.go @@ -227,7 +227,7 @@ func FetchAdminDetailsByUsername(dbUsername string) (AdminSearchResponse, error) } func UpdateAccountPassword(uuid, key, salt []byte) error { - _, err := handle.Exec("UPDATE accounts SET (hash, salt) VALUES (?, ?) WHERE uuid = ?", key, salt, uuid) + _, err := handle.Exec("UPDATE accounts SET hash = ?, salt = ? WHERE uuid = ?", key, salt, uuid) if err != nil { return err }