Skip to content

Commit

Permalink
update login checking logic
Browse files Browse the repository at this point in the history
  • Loading branch information
morganelle committed Feb 20, 2021
1 parent 7088519 commit 30981fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func Execute() {
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
// If the user is trying to login, no need to go
// through setup.
if cmd.Use == "login" {
if cmd.Use == "login" && cmd.Parent().Use == "auth0" {
return nil
}

Expand Down
4 changes: 2 additions & 2 deletions internal/cli/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ func testLoginCmd(cli *cli) *cobra.Command {
var connectionName string

cmd := &cobra.Command{
Use: "login-box",
Use: "login",
Short: "Try out your universal login box",
Long: `auth0 test login-box
Long: `auth0 test login
Launch a browser to try out your universal login box for the given client.
`,
RunE: func(cmd *cobra.Command, args []string) error {
Expand Down

0 comments on commit 30981fb

Please sign in to comment.