mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-04-28 23:26:17 +08:00
Fix query in UpdateAccountPassword
This commit is contained in:
parent
e95edb0ca1
commit
81032ec299
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user