Add core support for extendable authentication

add support for passwordless user creation; add filament loading support
for new laravel modules namespacing;
add support for pluggable password reset and login rules
This commit is contained in:
Gregor Vostrak
2026-06-23 18:16:43 +02:00
parent c94aa8038d
commit dbc927b6a9
8 changed files with 351 additions and 32 deletions

View File

@@ -7,10 +7,16 @@ import { Field, FieldLabel, FieldError } from '@/packages/ui/src/field';
import PrimaryButton from '@/packages/ui/src/Buttons/PrimaryButton.vue';
import TextInput from '@/packages/ui/src/Input/TextInput.vue';
defineProps({
canResetPassword: Boolean,
status: String,
});
withDefaults(
defineProps<{
canResetPassword?: boolean;
status?: string;
}>(),
{
canResetPassword: false,
status: '',
}
);
const form = useForm({
email: '',
@@ -28,8 +34,8 @@ const submit = () => {
};
const page = usePage<{
flash: {
message: string;
flash?: {
message?: string;
};
}>();
</script>
@@ -61,6 +67,9 @@ const page = usePage<{
{{ page.props.flash?.message }}
</div>
<!-- Extension seam: alternative-auth errors (e.g. SSO callback failures) -->
<slot name="error" />
<form @submit.prevent="submit">
<Field>
<FieldLabel for="email">Email</FieldLabel>
@@ -103,5 +112,8 @@ const page = usePage<{
</PrimaryButton>
</div>
</form>
<!-- Extension seam: alternative auth methods (e.g. SSO providers) -->
<slot name="alternatives" />
</AuthenticationCard>
</template>