diff --git a/src/frontend/src/pages/Index/Settings/AccountSettings/SecurityContent.tsx b/src/frontend/src/pages/Index/Settings/AccountSettings/SecurityContent.tsx
index 13b958a819..f1655e34d5 100644
--- a/src/frontend/src/pages/Index/Settings/AccountSettings/SecurityContent.tsx
+++ b/src/frontend/src/pages/Index/Settings/AccountSettings/SecurityContent.tsx
@@ -30,10 +30,9 @@ import type { AuthConfig, Provider } from '../../../../states/states';
import { useReauth } from './useConfirm';
export function SecurityContent() {
- const [auth_config, sso_enabled, mfa_enabled] = useServerApiState((state) => [
+ const [auth_config, sso_enabled] = useServerApiState((state) => [
state.auth_config,
- state.sso_enabled,
- state.mfa_enabled
+ state.sso_enabled
]);
return (
@@ -59,19 +58,7 @@ export function SecurityContent() {
Multifactor authentication
- {mfa_enabled() ? (
-
- ) : (
- }
- title={t`Not enabled`}
- color='yellow'
- >
-
- Multifactor authentication is not enabled for this server
-
-
- )}
+
Access Tokens
diff --git a/src/frontend/src/states/ApiState.tsx b/src/frontend/src/states/ApiState.tsx
index c4e71e8f7f..757baad1c7 100644
--- a/src/frontend/src/states/ApiState.tsx
+++ b/src/frontend/src/states/ApiState.tsx
@@ -12,7 +12,6 @@ interface ServerApiStateProps {
fetchServerApiState: () => void;
auth_config?: AuthConfig;
sso_enabled: () => boolean;
- mfa_enabled: () => boolean;
registration_enabled: () => boolean;
sso_registration_enabled: () => boolean;
password_forgotten_enabled: () => boolean;
@@ -52,10 +51,6 @@ export const useServerApiState = create()(
const data = get().auth_config?.socialaccount.providers;
return !(data === undefined || data.length == 0);
},
- mfa_enabled: () => {
- // TODO
- return true;
- },
registration_enabled: () => {
// TODO
return false;