Rollout 2FA (#14023)

Rolling out the 2FA feature for all users.
This commit is contained in:
Weiko
2025-08-21 14:31:24 +02:00
committed by GitHub
parent b9b5f9a347
commit 1c5f8c3db5
8 changed files with 26 additions and 61 deletions
@@ -18,11 +18,9 @@ import {
import { Card } from 'twenty-ui/layout';
import {
type AuthProviders,
FeatureFlagKey,
useUpdateWorkspaceMutation,
} from '~/generated-metadata/graphql';
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import { Toggle2FA } from './Toggle2FA';
const StyledSettingsSecurityOptionsList = styled.div`
@@ -42,10 +40,6 @@ export const SettingsSecurityAuthProvidersOptionsList = () => {
currentWorkspaceState,
);
const isTwoFactorAuthenticationEnabled = useIsFeatureEnabled(
FeatureFlagKey.IS_TWO_FACTOR_AUTHENTICATION_ENABLED,
);
const [updateWorkspace] = useUpdateWorkspaceMutation();
const isValidAuthProvider = (
@@ -185,11 +179,9 @@ export const SettingsSecurityAuthProvidersOptionsList = () => {
}
/>
</Card>
{isTwoFactorAuthenticationEnabled && (
<Card rounded>
<Toggle2FA />
</Card>
)}
<Card rounded>
<Toggle2FA />
</Card>
</>
)}
</StyledSettingsSecurityOptionsList>