Merge d117a035d27a2212a81e25a27132469d672417ce into 4d6de1e2a80edfea95783fa9b09aaedf74dfe2c7

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
}