1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-03 00:53:23 +00:00

feat(auth): [PM-15534] log user in when submitting recovery code

- Add recovery code enum and feature flag
- Update recovery code text and warning messages
- Log user in and redirect to two-factor settings page on valid recovery code
- Run full sync and handle login errors silently
- Move updated messaging behind feature flag

PM-15534
This commit is contained in:
Alec Rippberger
2025-02-18 16:52:29 -06:00
committed by GitHub
parent 4c09c22806
commit fa8ee6fa02
8 changed files with 158 additions and 20 deletions

View File

@@ -18,6 +18,8 @@ import { TwoFactorDuoResponse } from "@bitwarden/common/auth/models/response/two
import { getUserId } from "@bitwarden/common/auth/services/account.service";
import { AuthResponse } from "@bitwarden/common/auth/types/auth-response";
import { BillingAccountProfileStateService } from "@bitwarden/common/billing/abstractions/account/billing-account-profile-state.service";
import { ConfigService } from "@bitwarden/common/platform/abstractions/config/config.service";
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
import { MessagingService } from "@bitwarden/common/platform/abstractions/messaging.service";
import { DialogService } from "@bitwarden/components";
@@ -41,6 +43,8 @@ export class TwoFactorSetupComponent extends BaseTwoFactorSetupComponent impleme
private organizationService: OrganizationService,
billingAccountProfileStateService: BillingAccountProfileStateService,
protected accountService: AccountService,
configService: ConfigService,
i18nService: I18nService,
) {
super(
dialogService,
@@ -49,6 +53,8 @@ export class TwoFactorSetupComponent extends BaseTwoFactorSetupComponent impleme
policyService,
billingAccountProfileStateService,
accountService,
configService,
i18nService,
);
}