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>
60 lines
2.7 KiB
Vue
60 lines
2.7 KiB
Vue
<script setup>
|
|
import { ref } from 'vue';
|
|
import { Link, useForm } from '@inertiajs/vue3';
|
|
import { ArrowLeft, Eye, EyeOff, 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 });
|
|
|
|
/**
|
|
* Anmeldung mit Benutzername und Passwort eines Verzeichnisses (LDAP / Active Directory).
|
|
*/
|
|
const props = defineProps({
|
|
provider: { type: Object, required: true },
|
|
});
|
|
|
|
const showPassword = ref(false);
|
|
const form = useForm({ username: '', password: '' });
|
|
|
|
function submit() {
|
|
form.post(props.provider.action, { onFinish: () => form.reset('password') });
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<GuestLayout :title="provider.label" description="Mit dem Benutzernamen und Passwort, mit dem Sie sich auch am Arbeitsplatz anmelden.">
|
|
<form class="grid gap-5" @submit.prevent="submit">
|
|
<FormField id="username" :label="provider.username_label" :error="form.errors.username">
|
|
<Input id="username" v-model="form.username" autocomplete="username" autocapitalize="none" spellcheck="false" autofocus class="h-10" :aria-invalid="!!form.errors.username" />
|
|
</FormField>
|
|
|
|
<FormField id="password" label="Passwort" :error="form.errors.password">
|
|
<div class="relative">
|
|
<Input id="password" v-model="form.password" :type="showPassword ? 'text' : 'password'" autocomplete="current-password" class="h-10 pr-10" :aria-invalid="!!form.errors.password" />
|
|
<button
|
|
type="button"
|
|
class="absolute inset-y-0 right-0 grid w-10 place-items-center text-muted-foreground hover:text-foreground"
|
|
:aria-label="showPassword ? 'Passwort verbergen' : 'Passwort anzeigen'"
|
|
@click="showPassword = !showPassword"
|
|
>
|
|
<EyeOff v-if="showPassword" class="size-4" />
|
|
<Eye v-else class="size-4" />
|
|
</button>
|
|
</div>
|
|
</FormField>
|
|
|
|
<Button type="submit" size="lg" class="mt-2 h-10 w-full" :disabled="form.processing">
|
|
<LoaderCircle v-if="form.processing" class="animate-spin" />
|
|
Anmelden
|
|
</Button>
|
|
|
|
<Link href="/login" class="inline-flex items-center justify-center gap-1.5 text-sm text-muted-foreground hover:text-foreground">
|
|
<ArrowLeft class="size-4" /> Andere Anmeldung wählen
|
|
</Link>
|
|
</form>
|
|
</GuestLayout>
|
|
</template>
|