feat: Implementierung des Checkout-Logins mit E-Mail/Username-Support
This commit is contained in:
@@ -6,21 +6,23 @@ import { Label } from '@/components/ui/label';
|
||||
import AuthLayout from '@/layouts/auth-layout';
|
||||
import { Form, Head } from '@inertiajs/react';
|
||||
import { LoaderCircle } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
export default function ConfirmPassword() {
|
||||
return (
|
||||
<AuthLayout
|
||||
title="Confirm your password"
|
||||
description="This is a secure area of the application. Please confirm your password before continuing."
|
||||
>
|
||||
<Head title="Confirm password" />
|
||||
const { t } = useTranslation('auth');
|
||||
return (
|
||||
<AuthLayout
|
||||
title={t('auth.confirm.title', 'Confirm your password')}
|
||||
description={t('auth.confirm.description', 'This is a secure area of the application. Please confirm your password before continuing.')}
|
||||
>
|
||||
<Head title={t('auth.confirm.title', 'Confirm password')} />
|
||||
|
||||
<Form {...store.form()} resetOnSuccess={['password']}>
|
||||
{({ processing, errors }) => (
|
||||
<div className="space-y-6">
|
||||
<div className="grid gap-2">
|
||||
<Label htmlFor="password">Password</Label>
|
||||
<Input id="password" type="password" name="password" placeholder="Password" autoComplete="current-password" autoFocus />
|
||||
<Label htmlFor="password">{t('auth.confirm.password', 'Password')}</Label>
|
||||
<Input id="password" type="password" name="password" placeholder={t('auth.confirm.password_placeholder')} autoComplete="current-password" autoFocus />
|
||||
|
||||
<InputError message={errors.password} />
|
||||
</div>
|
||||
@@ -28,7 +30,7 @@ export default function ConfirmPassword() {
|
||||
<div className="flex items-center">
|
||||
<Button className="w-full" disabled={processing}>
|
||||
{processing && <LoaderCircle className="h-4 w-4 animate-spin" />}
|
||||
Confirm password
|
||||
{t('auth.confirm.submit', 'Confirm password')}
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user