import { participationIdentity } from '@/lib/participation-identity'; import { Form, Head, usePage } from '@inertiajs/react'; import InputError from '@/components/input-error'; import PasswordInput from '@/components/password-input'; import TextLink from '@/components/text-link'; import { Button } from '@/components/ui/button'; import { Checkbox } from '@/components/ui/checkbox'; import { Input } from '@/components/ui/input'; import { Label } from '@/components/ui/label'; import { Spinner } from '@/components/ui/spinner'; /* @chisel-registration */ import { register } from '@/routes'; /* @end-chisel-registration */ import { store } from '@/routes/login'; import { request } from '@/routes/password'; /* @chisel-passkeys */ import PasskeyVerify from '@/components/passkey-verify'; /* @end-chisel-passkeys */ type Props = { status?: string; canResetPassword: boolean; qaAccount?: { id: number; email: string }; }; export default function Login({ status, canResetPassword, qaAccount }: Props) { // A redirect from another page (e.g. MFA) creates a new Form with empty local errors. const pageErrors = usePage<{ errors: { email?: string } }>().props.errors; return ( <> {qaAccount && ( )} {/* @chisel-passkeys */} {/* @end-chisel-passkeys */}
{({ processing, errors }) => ( <>
{canResetPassword && ( Esqueceu a palavra-passe? )}
{/* @chisel-registration */}
Ainda não tem conta?{' '} Criar conta
{/* @end-chisel-registration */} )}
{status && (
{status}
)} ); } Login.layout = { title: 'Entrar na sua conta', description: 'Entre para continuar a operação que escolheu. Os dados preenchidos permanecem guardados neste navegador.', };