1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-08 20:50:28 +00:00

Fix migration to Key Connector (#452)

* Move Key Connector check to subclass

* Move authService.logout call to main program

* Move Key Connector migration check to unlock command

* Use get/setConvertAccountRequired flag

* Move Key Connector convert to own command, set usesKeyConnector after conversion

* Remove KC conversion check from syncCommand, fix callback

* Make class service private

* Fix naming convention

* Update jslib and deps
This commit is contained in:
Thomas Rittson
2022-01-21 06:03:37 +10:00
committed by GitHub
parent 922cd1dc54
commit 8b650666c5
7 changed files with 159 additions and 29 deletions

View File

@@ -149,7 +149,6 @@ export class Program extends BaseProgram {
this.main.authService,
this.main.apiService,
this.main.cryptoFunctionService,
this.main.syncService,
this.main.i18nService,
this.main.environmentService,
this.main.passwordGenerationService,
@@ -157,6 +156,7 @@ export class Program extends BaseProgram {
this.main.stateService,
this.main.cryptoService,
this.main.policyService,
this.main.syncService,
this.main.keyConnectorService,
async () => await this.main.logout()
);
@@ -257,7 +257,11 @@ export class Program extends BaseProgram {
this.main.stateService,
this.main.cryptoFunctionService,
this.main.apiService,
this.main.logService
this.main.logService,
this.main.keyConnectorService,
this.main.environmentService,
this.main.syncService,
async () => await this.main.logout()
);
const response = await command.run(password, cmd);
this.processResponse(response);
@@ -511,7 +515,11 @@ export class Program extends BaseProgram {
this.main.stateService,
this.main.cryptoFunctionService,
this.main.apiService,
this.main.logService
this.main.logService,
this.main.keyConnectorService,
this.main.environmentService,
this.main.syncService,
this.main.logout
);
const response = await command.run(null, null);
if (!response.success) {