feat: implement multi-tenancy and super admin impersonation with security banner

This commit is contained in:
jeremy bayse
2026-02-21 20:15:47 +01:00
parent a0e904d69d
commit 63e448ef22
31 changed files with 819 additions and 51 deletions

View File

@@ -7,6 +7,7 @@ import TextInput from '@/Components/TextInput.vue';
import { Head, Link, useForm } from '@inertiajs/vue3';
const form = useForm({
structure_name: '',
name: '',
email: '',
password: '',
@@ -26,7 +27,23 @@ const submit = () => {
<form @submit.prevent="submit">
<div>
<InputLabel for="name" value="Nom" />
<InputLabel for="structure_name" value="Nom de votre Organisation (SaaS)" />
<TextInput
id="structure_name"
type="text"
class="mt-1 block w-full"
v-model="form.structure_name"
required
autofocus
autocomplete="organization"
/>
<InputError class="mt-2" :message="form.errors.structure_name" />
</div>
<div class="mt-4">
<InputLabel for="name" value="Votre Nom complet" />
<TextInput
id="name"
@@ -34,7 +51,6 @@ const submit = () => {
class="mt-1 block w-full"
v-model="form.name"
required
autofocus
autocomplete="name"
/>