mirror of
https://github.com/docmost/docmost.git
synced 2026-05-18 23:44:24 +08:00
662460252f
* feat(EE): MFA implementation for enterprise edition - Add TOTP-based two-factor authentication - Add backup codes support - Add MFA enforcement at workspace level - Add MFA setup and challenge UI pages - Support MFA for login and password reset flows - Add MFA validation for secure pages * fix types * remove unused object * sync * remove unused type * sync * refactor: rename MFA enabled field to is_enabled * sync
14 lines
271 B
TypeScript
14 lines
271 B
TypeScript
import React from "react";
|
|
import { MfaChallenge } from "@/ee/mfa";
|
|
import { useMfaPageProtection } from "@/ee/mfa";
|
|
|
|
export function MfaChallengePage() {
|
|
const { isValid } = useMfaPageProtection();
|
|
|
|
if (!isValid) {
|
|
return null;
|
|
}
|
|
|
|
return <MfaChallenge />;
|
|
}
|