Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
fix: don't sign in if already signed in
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe committed Dec 10, 2019
1 parent b79673e commit 516d60a
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 @@ -23,7 +23,7 @@ to quickly create a Cobra application.`,
Run: func(cmd *cobra.Command, args []string) {
if viper.IsSet("FirebaseRefreshToken") {
email := viper.GetString("FirebaseUserAccountEmail")
fmt.Fprint(os.Stdout, aurora.Sprintf(aurora.Red("You are already logged in as %s!\n"), email))
fmt.Fprint(os.Stdout, aurora.Sprintf("Already logged in as %s\n", aurora.Green(email)))
os.Exit(1)
}
noLocalhostFlag, _ := cmd.Flags().GetBool("no-localhost")
Expand Down

0 comments on commit 516d60a

Please sign in to comment.