working commit

This commit is contained in:
2026-02-13 19:14:15 +02:00
parent 04cf117632
commit 801606b956
6 changed files with 295 additions and 7 deletions
+2 -2
View File
@@ -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,
-3
View File
@@ -12,9 +12,6 @@ package client
import (
"context"
"fmt"
//"math/rand"
//"os"
//"path/filepath"
"sync"
"testing"
"time"