Skip to content

Commit

Permalink
fix ui client to also keep preshared key
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-fischer committed Jan 18, 2024
1 parent b9c08b4 commit 7296259
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions client/ui/client_ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,17 @@ func (s *serviceClient) getSettingsForm() *widget.Form {
return
}

_, err = client.Login(s.ctx, &proto.LoginRequest{
loginRequest := proto.LoginRequest{
ManagementUrl: s.iMngURL.Text,
AdminURL: s.iAdminURL.Text,
OptionalPreSharedKey: &s.iPreSharedKey.Text,
IsLinuxDesktopClient: runtime.GOOS == "linux",
})
}

if s.iPreSharedKey.Text != "**********" {
loginRequest.OptionalPreSharedKey = &s.iPreSharedKey.Text
}

_, err = client.Login(s.ctx, &loginRequest)
if err != nil {
log.Errorf("login to management URL: %v", err)
return
Expand Down

0 comments on commit 7296259

Please sign in to comment.