feat: scope organization access by memberships

This commit is contained in:
2026-06-24 18:04:43 +01:00
parent 92f4e54cf4
commit f0ec055725
14 changed files with 299 additions and 126 deletions
@@ -32,7 +32,9 @@
<Dialog.Content class="sm:max-w-md">
<Dialog.Header>
<Dialog.Title>Create user</Dialog.Title>
<Dialog.Description>Add a manually managed Better Auth user.</Dialog.Description>
<Dialog.Description>
Create a user or add an existing email to this organization.
</Dialog.Description>
</Dialog.Header>
<form method="POST" action="?/create" class="grid gap-2" use:enhanceCreate>
<FormField form={createForm} name="name">
@@ -66,6 +68,7 @@
{...props}
type="password"
autocomplete="new-password"
placeholder="Required for new users"
bind:value={$createData.password}
/>
{/snippet}