42 lines
1.5 KiB
TypeScript
42 lines
1.5 KiB
TypeScript
import { Form, Head } from '@inertiajs/react';
|
|
import { Button } from '@/components/ui/button';
|
|
import PasswordInput from '@/components/password-input';
|
|
import InputError from '@/components/input-error';
|
|
|
|
export default function ConfirmPassword() {
|
|
return (
|
|
<>
|
|
<Head title="Confirmar palavra-passe" />
|
|
<h1 className="text-xl font-semibold">Confirmar palavra-passe</h1>
|
|
<p className="my-4 text-sm">
|
|
Confirme a palavra-passe da sua conta para continuar esta
|
|
operação.
|
|
</p>
|
|
<Form
|
|
action="/user/confirm-password"
|
|
method="post"
|
|
resetOnError
|
|
resetOnSuccess
|
|
>
|
|
{({ errors, processing }) => (
|
|
<div className="space-y-4">
|
|
<label className="grid gap-2">
|
|
Palavra-passe actual
|
|
<PasswordInput
|
|
name="password"
|
|
autoComplete="current-password"
|
|
required
|
|
autoFocus
|
|
/>
|
|
</label>
|
|
<InputError message={errors.password} />
|
|
<Button disabled={processing}>
|
|
Confirmar palavra-passe
|
|
</Button>
|
|
</div>
|
|
)}
|
|
</Form>
|
|
</>
|
|
);
|
|
}
|