This commit is contained in:
Alexandre Boucey 2024-11-29 10:10:44 +00:00 committed by GitHub
commit 2077c6349b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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
}