diff --git a/ui-ngx/src/app/modules/home/pages/admin/two-factor-auth-settings.component.html b/ui-ngx/src/app/modules/home/pages/admin/two-factor-auth-settings.component.html index 8aff328999..04cfd2c528 100644 --- a/ui-ngx/src/app/modules/home/pages/admin/two-factor-auth-settings.component.html +++ b/ui-ngx/src/app/modules/home/pages/admin/two-factor-auth-settings.component.html @@ -95,34 +95,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -161,34 +133,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - -
admin.2fa.available-providers diff --git a/ui-ngx/src/app/modules/home/pages/admin/two-factor-auth-settings.component.ts b/ui-ngx/src/app/modules/home/pages/admin/two-factor-auth-settings.component.ts index 10cc499118..c46cb202eb 100644 --- a/ui-ngx/src/app/modules/home/pages/admin/two-factor-auth-settings.component.ts +++ b/ui-ngx/src/app/modules/home/pages/admin/two-factor-auth-settings.component.ts @@ -175,6 +175,12 @@ export class TwoFactorAuthSettingsComponent extends PageComponent implements OnI verificationCodeSendRateLimitTime: sendRateLimitTime || 60, providers: [] }); + if (sendRateLimitNumber > 0) { + this.getByIndexPanel(0).open(); + } + if (checkRateLimitNumber > 0) { + this.getByIndexPanel(1).open(); + } Object.values(TwoFactorAuthProviderType).forEach((provider, index) => { const findIndex = allowProvidersConfig.indexOf(provider); if (findIndex > -1) {