Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 6m55s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 7m3s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 7m20s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 7m44s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 10m13s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 10m12s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 9m13s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 9m0s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 43s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m5s
Bleibendes Inertia-Layout (PortalFrame) mit festem Seitenkopf-Bereich; PageHeader teleportiert dorthin, AppLayout meldet Titel und Seitenvorlage (default/medium/narrow/app). Seiten ohne Kopf bekommen einen vom Rahmen. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
50 lines
1.9 KiB
Vue
50 lines
1.9 KiB
Vue
<script setup>
|
|
import { useForm } from '@inertiajs/vue3';
|
|
import { LoaderCircle } from '@lucide/vue';
|
|
import { Button } from '@/components/ui/button';
|
|
import { Input } from '@/components/ui/input';
|
|
import FormField from '@/components/FormField.vue';
|
|
import GuestLayout from '@/layouts/GuestLayout.vue';
|
|
|
|
// Ohne Portalrahmen: eigenes Layout bzw. Vollbild (lib/withFrame.js)
|
|
defineOptions({ frame: false });
|
|
|
|
const props = defineProps({
|
|
email: { type: String, default: '' },
|
|
token: { type: String, required: true },
|
|
});
|
|
|
|
const form = useForm({
|
|
token: props.token,
|
|
email: props.email,
|
|
password: '',
|
|
password_confirmation: '',
|
|
});
|
|
|
|
function submit() {
|
|
form.post('/reset-password', {
|
|
onFinish: () => form.reset('password', 'password_confirmation'),
|
|
});
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<GuestLayout title="Neues Passwort festlegen" description="Mindestens 10 Zeichen, mit Buchstaben und Ziffern.">
|
|
<form class="grid gap-5" @submit.prevent="submit">
|
|
<FormField id="email" label="E-Mail-Adresse" :error="form.errors.email">
|
|
<Input id="email" v-model="form.email" type="email" autocomplete="username" class="h-10" />
|
|
</FormField>
|
|
<FormField id="password" label="Neues Passwort" :error="form.errors.password">
|
|
<Input id="password" v-model="form.password" type="password" autocomplete="new-password" autofocus class="h-10" />
|
|
</FormField>
|
|
<FormField id="password_confirmation" label="Passwort wiederholen">
|
|
<Input id="password_confirmation" v-model="form.password_confirmation" type="password" autocomplete="new-password" class="h-10" />
|
|
</FormField>
|
|
|
|
<Button type="submit" size="lg" class="h-10 w-full" :disabled="form.processing">
|
|
<LoaderCircle v-if="form.processing" class="animate-spin" />
|
|
Passwort speichern
|
|
</Button>
|
|
</form>
|
|
</GuestLayout>
|
|
</template>
|