Skip to content

Commit

Permalink
Update start cmd password
Browse files Browse the repository at this point in the history
  • Loading branch information
zachhuff386 committed Jul 27, 2024
1 parent 4bd120e commit 39a0630
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions cli/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package cmd

import (
"github.com/pritunl/pritunl-client-electron/cli/sprofile"
"github.com/pritunl/pritunl-client-electron/cli/terminal"
"github.com/spf13/cobra"
)

Expand All @@ -14,14 +13,7 @@ var StartCmd = &cobra.Command{
cobra.CheckErr("cmd: Missing profile ID")
}

if passwordPrompt {
password = terminal.ReadPassword()
if password == "" {
cobra.CheckErr("cmd: Password is empty")
}
}

err := sprofile.Start(args[0], mode, password)
err := sprofile.Start(args[0], mode, password, passwordPrompt)
cobra.CheckErr(err)
},
}

0 comments on commit 39a0630

Please sign in to comment.