mirror of
https://github.com/bitwarden/browser
synced 2026-02-08 12:40:26 +00:00
introducing convertAccountRequired$
This commit is contained in:
@@ -71,7 +71,7 @@ export class UnlockCommand {
|
||||
const userKey = await this.masterPasswordService.decryptUserKeyWithMasterKey(masterKey, userId);
|
||||
await this.keyService.setUserKey(userKey, userId);
|
||||
|
||||
if (await this.keyConnectorService.getConvertAccountRequired()) {
|
||||
if (await firstValueFrom(this.keyConnectorService.convertAccountRequired$)) {
|
||||
const convertToKeyConnectorCommand = new ConvertToKeyConnectorCommand(
|
||||
userId,
|
||||
this.keyConnectorService,
|
||||
|
||||
@@ -76,7 +76,6 @@ export class ConvertToKeyConnectorCommand {
|
||||
return Response.success();
|
||||
} else if (answer.convert === "leave") {
|
||||
await this.organizationApiService.leave(organization.id);
|
||||
await this.keyConnectorService.removeConvertAccountRequired(this.userId);
|
||||
return Response.success();
|
||||
} else {
|
||||
await this.logout();
|
||||
|
||||
Reference in New Issue
Block a user