芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/reginaeigbe.com/folder/admin/tmp/resources/js/Frontend/Pages/Auth/Login.jsx
import { useEffect } from 'react'; import Checkbox from '@/Components/Checkbox'; import GuestLayout from "@/Frontend/Layouts/GuestLayout.jsx"; import InputError from '@/Components/InputError'; import InputLabel from '@/Components/InputLabel'; import PrimaryButton from '@/Components/PrimaryButton'; import TextInput from '@/Components/TextInput'; import { Head, Link, useForm } from '@inertiajs/react'; export default function Login({ status, canResetPassword }) { const { data, setData, post, processing, errors, reset } = useForm({ email: '', password: '', remember: false, }); useEffect(() => { return () => { reset('password'); }; }, []); const submit = (e) => { e.preventDefault(); post(route('login')); }; return (
{status &&
{status}
}
setData('email', e.target.value)} />
setData('password', e.target.value)} />
setData('remember', e.target.checked)} />
Remember me
{canResetPassword && (
Forgot your password? )}
Log in
); }