From bc31867e1a8ff4a85f59163889da5801db0ce25a Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 4 Aug 2020 08:50:13 -0400 Subject: [PATCH] allow login command clientid from ctor --- src/cli/commands/login.command.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cli/commands/login.command.ts b/src/cli/commands/login.command.ts index 6cde86933c..9d6e6bf243 100644 --- a/src/cli/commands/login.command.ts +++ b/src/cli/commands/login.command.ts @@ -35,7 +35,9 @@ export class LoginCommand { constructor(protected authService: AuthService, protected apiService: ApiService, protected i18nService: I18nService, protected environmentService: EnvironmentService, protected passwordGenerationService: PasswordGenerationService, - protected cryptoFunctionService: CryptoFunctionService) { } + protected cryptoFunctionService: CryptoFunctionService, clientId: string) { + this.clientId = clientId; + } async run(email: string, password: string, cmd: program.Command) { this.canInteract = process.env.BW_NOINTERACTION !== 'true';