feat: Implementierung des Checkout-Logins mit E-Mail/Username-Support

This commit is contained in:
Codex Agent
2025-10-08 21:57:46 +02:00
parent cee279cbab
commit 417b1da484
25 changed files with 730 additions and 212 deletions

View File

@@ -7,9 +7,11 @@ import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
import { Form } from '@inertiajs/react';
import { useRef } from 'react';
import { useTranslation } from 'react-i18next';
export default function DeleteUser() {
const passwordInput = useRef<HTMLInputElement>(null);
const { t } = useTranslation('auth');
const passwordInput = useRef<HTMLInputElement>(null);
return (
<div className="space-y-6">
@@ -27,8 +29,7 @@ export default function DeleteUser() {
<DialogContent>
<DialogTitle>Are you sure you want to delete your account?</DialogTitle>
<DialogDescription>
Once your account is deleted, all of its resources and data will also be permanently deleted. Please enter your password
to confirm you would like to permanently delete your account.
{t('auth.delete_user.confirm_text')}
</DialogDescription>
<Form
@@ -48,12 +49,12 @@ export default function DeleteUser() {
</Label>
<Input
id="password"
type="password"
name="password"
ref={passwordInput}
placeholder="Password"
autoComplete="current-password"
id="password"
type="password"
name="password"
ref={passwordInput}
placeholder={t('auth.delete_user.password_placeholder')}
autoComplete="current-password"
/>
<InputError message={errors.password} />