Skip to content

Commit

Permalink
fix change password sql query
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsAreku committed Jun 8, 2024
1 parent 656a935 commit d117a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit d117a03

Please sign in to comment.