Browse Source

Added extra check for two-factor auth settings

pull/14815/head
Maksym Tsymbarov 5 months ago
committed by Vladyslav Prykhodko
parent
commit
dd2b686eb9
  1. 2
      ui-ngx/src/app/modules/home/pages/admin/two-factor-auth-settings.component.ts

2
ui-ngx/src/app/modules/home/pages/admin/two-factor-auth-settings.component.ts

@ -216,7 +216,7 @@ export class TwoFactorAuthSettingsComponent extends PageComponent implements OnI
}
});
this.twoFaFormGroup.patchValue(processFormValue);
this.filterByTenants = isDefined(this.filterByTenants) ? this.filterByTenants : !Array.isArray(settings?.enforcedUsersFilter.tenantProfilesIds);
this.filterByTenants = isDefined(this.filterByTenants) ? this.filterByTenants : !Array.isArray(settings?.enforcedUsersFilter?.tenantProfilesIds);
this.twoFaFormGroup.get('enforcedUsersFilter.filterByTenants').patchValue(this.filterByTenants, {onlySelf: true});
}

Loading…
Cancel
Save