import { FormEventHandler, useEffect } from "react"; import GuestLayout from "@/Layouts/GuestLayout"; import { Head, useForm } from "@inertiajs/react"; import { Card, CardContent, CardDescription, CardFooter, CardHeader, } from "@/Components/ui/card"; import { Label } from "@/Components/ui/label"; import { Input } from "@/Components/ui/input"; import { InputError } from "@/Components/ui/InputError"; import { Button } from "@/Components/ui/button"; export default function ConfirmPassword() { const { data, setData, post, processing, errors, reset } = useForm({ password: "", }); useEffect(() => { return () => { reset("password"); }; }, []); const submit: FormEventHandler = (e) => { e.preventDefault(); post(route("password.confirm")); }; return (
This is a secure area of the application. Please confirm your password before continuing.
setData("password", e.target.value) } />
); }