Skip to content

Commit

Permalink
Fix up logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
garnold54 committed Feb 6, 2023
1 parent a1686aa commit 8da2cf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func loginRun(f *loginFlags) func(cmd *cobra.Command, args []string) error {
var password string

if f.token == "" {
if f.user == "" && f.passwordFile == "" {
if f.user == "" || f.passwordFile == "" {
// prompt for a user and password
promptUser := &survey.Input{
Message: "Username:",
Expand Down

0 comments on commit 8da2cf5

Please sign in to comment.