refactor: rename MFA enabled field to is_enabled

This commit is contained in:
Philipinho
2025-07-23 20:46:48 -07:00
parent 2857d86dae
commit d789ba3ffa
7 changed files with 11 additions and 13 deletions
@@ -25,7 +25,7 @@ export function MfaSettings() {
}
// Check if MFA is truly enabled
const isMfaEnabled = mfaStatus?.enabled === true;
const isMfaEnabled = mfaStatus?.isEnabled === true;
const handleSetupComplete = () => {
setSetupModalOpen(false);
+3 -3
View File
@@ -1,10 +1,10 @@
export interface MfaMethod {
type: 'totp' | 'email';
enabled: boolean;
isEnabled: boolean;
}
export interface MfaSettings {
enabled: boolean;
isEnabled: boolean;
methods: MfaMethod[];
backupCodesCount: number;
lastUpdated?: string;
@@ -19,7 +19,7 @@ export interface MfaSetupState {
}
export interface MfaStatusResponse {
enabled?: boolean;
isEnabled?: boolean;
method?: string | null;
backupCodesCount?: number;
}