import React, { useEffect } from 'react'; import GuestLayout from '@/Layouts/GuestLayout'; import InputError from '@/Components/Defaults/InputError'; import InputLabel from '@/Components/Defaults/InputLabel'; import PrimaryButton from '@/Components/Defaults/PrimaryButton'; import TextInput from '@/Components/Defaults/TextInput'; import { Head, useForm } from '@inertiajs/react'; export default function ConfirmPassword() { const { data, setData, post, processing, errors, reset } = useForm({ password: '', }); useEffect(() => { return () => { reset('password'); }; }, []); const onHandleChange = (event) => { setData(event.target.name, event.target.value); }; const submit = (e) => { e.preventDefault(); post(route('password.confirm')); }; return (
This is a secure area of the application. Please confirm your password before continuing.
Confirm
); }