This commit is contained in:
2026-11-03 11:51:44 +02:00
parent badaada043
commit e753f7a0a4
309 changed files with 14537 additions and 529 deletions
+10
View File
@@ -4,6 +4,7 @@ import SecurityController from '@/actions/App/Http/Controllers/Settings/Security
import Heading from '@/components/heading';
import InputError from '@/components/input-error';
import PasswordInput from '@/components/password-input';
import TwoFactorManagement from '@/components/two-factor-management';
import { Button } from '@/components/ui/button';
import { Label } from '@/components/ui/label';
import { edit } from '@/routes/security';
@@ -11,6 +12,9 @@ import { edit } from '@/routes/security';
// oxfmt-ignore
type Props = {
passwordRules: string;
canManageTwoFactor?: boolean;
twoFactorEnabled?: boolean;
twoFactorPending?: boolean;
};
export default function Security(props: Props) {
@@ -24,6 +28,12 @@ export default function Security(props: Props) {
<h1 className="sr-only">Segurança da conta</h1>
<div className="space-y-6">
{props.canManageTwoFactor && (
<TwoFactorManagement
enabled={Boolean(props.twoFactorEnabled)}
pending={Boolean(props.twoFactorPending)}
/>
)}
<Heading
variant="small"
title="Alterar palavra-passe"