mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
feat(console): add mfa to plan quota table (#4732)
This commit is contained in:
parent
43b35c71ba
commit
5cfb478715
1 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
import { conditionalArray } from '@silverhand/essentials';
|
||||
|
||||
import {
|
||||
type SubscriptionPlanTable,
|
||||
type SubscriptionPlanTableData,
|
||||
|
@ -6,6 +8,7 @@ import {
|
|||
ReservedPlanName,
|
||||
} from '@/types/subscriptions';
|
||||
|
||||
import { isDevFeaturesEnabled as isDevelopmentFeaturesEnabled } from './env';
|
||||
import { ReservedPlanId } from './subscriptions';
|
||||
|
||||
type EnabledFeatureMap = Record<string, boolean | undefined>;
|
||||
|
@ -95,6 +98,7 @@ const enterprisePlanTable: SubscriptionPlanTable = {
|
|||
appLogoAndFaviconEnabled: true,
|
||||
darkModeEnabled: true,
|
||||
i18nEnabled: true,
|
||||
mfaEnabled: true,
|
||||
omniSignInEnabled: true,
|
||||
passwordSignInEnabled: true,
|
||||
passwordlessSignInEnabled: true,
|
||||
|
@ -132,6 +136,7 @@ export const planTableGroupKeyMap: SubscriptionPlanTableGroupKeyMap = Object.fre
|
|||
'i18nEnabled',
|
||||
],
|
||||
[SubscriptionPlanTableGroupKey.userAuthentication]: [
|
||||
...conditionalArray(isDevelopmentFeaturesEnabled && 'mfaEnabled'),
|
||||
'omniSignInEnabled',
|
||||
'passwordSignInEnabled',
|
||||
'passwordlessSignInEnabled',
|
||||
|
|
Loading…
Reference in a new issue