All checks were successful
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m41s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m48s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m15s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m17s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 3m48s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 3m41s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 3m33s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m26s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 3m59s
- Gemeinsamer Treiber-Unterbau (App\Identity\IdentityDriver, IdentityDrivers, IdentityLogin, AttributeProfile); Entra ID nutzt ihn ebenfalls - Plugins oidc, ldap und saml mit Profil- und Gruppen-Zuordnung - Admin: Verfahren wählen, Formular je Verfahren, zuletzt empfangene Angaben - onelogin/php-saml als neue Abhängigkeit Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
57 lines
2.6 KiB
Vue
57 lines
2.6 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';
|
|
|
|
/**
|
|
* 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>
|