fix change password sql query

pull/16/head
Alexandre Boucey 6 months ago
parent 656a935a6c
commit d117a035d2
No known key found for this signature in database
GPG Key ID: 71096D41488C3DD0

@ -51,7 +51,7 @@ func AddAccountSession(username string, token []byte) 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
}

Loading…
Cancel
Save