Skip to content

Commit

Permalink
remove addNewUserPrompt
Browse files Browse the repository at this point in the history
  • Loading branch information
maidul98 committed Apr 15, 2023
1 parent fe115a7 commit 954335b
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions cli/packages/cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,20 +356,6 @@ func getFreshUserCredentials(email string, password string) (*api.GetLoginOneV2R
return &loginOneResponseResult, &loginTwoResponseResult, nil
}

func addNewUserPrompt() (bool, error) {
prompt := promptui.Select{
Label: "A user is already logged in. Would you like to add a new user? Select[Yes/No]",
Items: []string{"No", "Yes"},
}

_, result, err := prompt.Run()
if err != nil {
return false, err
}

return result == "Yes", err
}

func userLoginMenu(currentLoggedInUserEmail string) (bool, error) {
prompt := promptui.Select{
Label: fmt.Sprintf("Current logged in user email: %s", currentLoggedInUserEmail),
Expand Down

0 comments on commit 954335b

Please sign in to comment.