mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
Fix PortainerClient.Authenticate usage of viper
This commit is contained in:
parent
064e7789fb
commit
8d0fb72034
@ -118,8 +118,8 @@ func (n *PortainerClient) Authenticate(user, password string) (token string, err
|
|||||||
PrintVerbose("Getting auth token...")
|
PrintVerbose("Getting auth token...")
|
||||||
|
|
||||||
reqBody := AuthenticateUserRequest{
|
reqBody := AuthenticateUserRequest{
|
||||||
Username: viper.GetString("user"),
|
Username: user,
|
||||||
Password: viper.GetString("password"),
|
Password: password,
|
||||||
}
|
}
|
||||||
|
|
||||||
respBody := AuthenticateUserResponse{}
|
respBody := AuthenticateUserResponse{}
|
||||||
|
Loading…
Reference in New Issue
Block a user