allow login command clientid from ctor
This commit is contained in:
parent
7d49902eea
commit
bc31867e1a
|
@ -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';
|
||||||
|
|
Loading…
Reference in New Issue