commit21
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user