Fix query in UpdateAccountPassword

This commit is contained in:
Pancakes 2025-04-24 16:00:54 -04:00
parent e95edb0ca1
commit 81032ec299
No known key found for this signature in database
GPG Key ID: 5792877BFA27DC8F

View File

@ -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
}