feat: implement two-factor authentication (2FA) support with user login and settings integration

This commit is contained in:
Seefs
2025-08-02 14:53:28 +08:00
parent 316c0a594e
commit b48d3a6b40
14 changed files with 1874 additions and 3 deletions

View File

@@ -36,6 +36,7 @@ import {
renderModelTag,
getModelCategories
} from '../../helpers';
import TwoFASetting from './TwoFASetting';
import Turnstile from 'react-turnstile';
import { UserContext } from '../../context/User';
import { useTheme } from '../../context/Theme';
@@ -1041,6 +1042,9 @@ const PersonalSetting = () => {
</div>
</Card>
{/* 两步验证设置 */}
<TwoFASetting />
{/* 危险区域 */}
<Card
className="!rounded-xl border-red-200 w-full"