mirror of
https://github.com/docmost/docmost.git
synced 2026-05-19 16:04:17 +08:00
8cd4b25dbc
- 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
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 />;
|
|
}
|