1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-22 07:50:04 +02:00

PM-13368 - Registration with Email Verification - Registration Finish - Add 2FA support (#11614)

This commit is contained in:
Jared Snider 2024-10-18 10:17:23 -04:00 committed by GitHub
parent c787ecd22c
commit ad40db9ecf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -163,7 +163,12 @@ export class RegistrationFinishComponent implements OnInit, OnDestroy {
null, null,
); );
await this.loginStrategyService.logIn(credentials); const authenticationResult = await this.loginStrategyService.logIn(credentials);
if (authenticationResult?.requiresTwoFactor) {
await this.router.navigate(["/2fa"]);
return;
}
this.toastService.showToast({ this.toastService.showToast({
variant: "success", variant: "success",