diff --git a/common/client.go b/common/client.go index a159089..efc8254 100644 --- a/common/client.go +++ b/common/client.go @@ -118,8 +118,8 @@ func (n *PortainerClient) Authenticate(user, password string) (token string, err PrintVerbose("Getting auth token...") reqBody := AuthenticateUserRequest{ - Username: viper.GetString("user"), - Password: viper.GetString("password"), + Username: user, + Password: password, } respBody := AuthenticateUserResponse{}