allow login command clientid from ctor

This commit is contained in:
Kyle Spearrin 2020-08-04 08:50:13 -04:00
parent 7d49902eea
commit bc31867e1a
1 changed files with 3 additions and 1 deletions

View File

@ -35,7 +35,9 @@ export class LoginCommand {
constructor(protected authService: AuthService, protected apiService: ApiService, constructor(protected authService: AuthService, protected apiService: ApiService,
protected i18nService: I18nService, protected environmentService: EnvironmentService, protected i18nService: I18nService, protected environmentService: EnvironmentService,
protected passwordGenerationService: PasswordGenerationService, protected passwordGenerationService: PasswordGenerationService,
protected cryptoFunctionService: CryptoFunctionService) { } protected cryptoFunctionService: CryptoFunctionService, clientId: string) {
this.clientId = clientId;
}
async run(email: string, password: string, cmd: program.Command) { async run(email: string, password: string, cmd: program.Command) {
this.canInteract = process.env.BW_NOINTERACTION !== 'true'; this.canInteract = process.env.BW_NOINTERACTION !== 'true';