Browse Source

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

pull/11626/head
Jared Snider 1 year ago committed by GitHub
parent
commit
ad40db9ecf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      libs/auth/src/angular/registration/registration-finish/registration-finish.component.ts

7
libs/auth/src/angular/registration/registration-finish/registration-finish.component.ts

@ -163,7 +163,12 @@ export class RegistrationFinishComponent implements OnInit, OnDestroy { @@ -163,7 +163,12 @@ export class RegistrationFinishComponent implements OnInit, OnDestroy {
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({
variant: "success",

Loading…
Cancel
Save