working commit
This commit is contained in:
@@ -118,7 +118,7 @@ func (cli *Client) GetAccountByName(ctx context.Context, hosturi, username strin
|
||||
return err
|
||||
}
|
||||
|
||||
func (cli *Client) UpdateAccount(ctx context.Context, hosturi, id, username, newUsername, newPassword string) error {
|
||||
func (cli *Client) UpdateAccountByID(ctx context.Context, hosturi, id, newUsername, newPassword string) error {
|
||||
var err error
|
||||
|
||||
apipath, err := setApiPath(hosturi, "/v3/api/account/update")
|
||||
@@ -126,7 +126,7 @@ func (cli *Client) UpdateAccount(ctx context.Context, hosturi, id, username, new
|
||||
return err
|
||||
}
|
||||
operParams := operator.UpdateAccountParams{
|
||||
Username: username,
|
||||
//Username: username,
|
||||
AccountID: id,
|
||||
NewUsername: newUsername,
|
||||
NewPassword: newPassword,
|
||||
|
||||
Reference in New Issue
Block a user