1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-23 11:56:00 +01:00

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

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';