mirror of
https://github.com/docmost/docmost.git
synced 2026-08-28 01:07:08 +08:00
refactor: rename MFA enabled field to is_enabled
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user