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 }