diff --git a/angular/src/components/login.component.ts b/angular/src/components/login.component.ts index 73e972be..f796c941 100644 --- a/angular/src/components/login.component.ts +++ b/angular/src/components/login.component.ts @@ -107,7 +107,7 @@ export class LoginComponent extends CaptchaProtectedComponent implements OnInit } if (this.handleCaptchaRequired(response)) { return; - } else if (response.twoFactor) { + } else if (response.requiresTwoFactor) { if (this.onSuccessfulLoginTwoFactorNavigate != null) { this.onSuccessfulLoginTwoFactorNavigate(); } else { diff --git a/angular/src/components/sso.component.ts b/angular/src/components/sso.component.ts index 649f298c..ac814fea 100644 --- a/angular/src/components/sso.component.ts +++ b/angular/src/components/sso.component.ts @@ -178,7 +178,7 @@ export class SsoComponent { orgIdFromState ); const response = await this.formPromise; - if (response.twoFactor) { + if (response.requiresTwoFactor) { if (this.onSuccessfulLoginTwoFactorNavigate != null) { this.onSuccessfulLoginTwoFactorNavigate(); } else { diff --git a/node/src/cli/commands/login.command.ts b/node/src/cli/commands/login.command.ts index d70eb93f..7f7b97ca 100644 --- a/node/src/cli/commands/login.command.ts +++ b/node/src/cli/commands/login.command.ts @@ -216,7 +216,7 @@ export class LoginCommand { } } } - if (response.twoFactor) { + if (response.requiresTwoFactor) { let selectedProvider: any = null; const twoFactorProviders = this.twoFactorService.getSupportedProviders(null); if (twoFactorProviders.length === 0) { @@ -291,7 +291,7 @@ export class LoginCommand { }); } - if (response.twoFactor) { + if (response.requiresTwoFactor) { return Response.error("Login failed."); }