mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-15 20:25:23 +02:00
Merge branch 'canary' into invite-user-with-initial-credentials
Resolve conflicts:
- Integrate credentials-based user provisioning with canary changes
- Use withPermission("member", "create") instead of adminProcedure
- Adopt standardSchemaResolver, inviteMember mutation, and custom roles from canary
- Restrict credentials flow to non-cloud environments
This commit is contained in:
@@ -139,7 +139,7 @@ export const AddInvitation = () => {
|
||||
if (data.mode === "credentials") {
|
||||
await createUserWithCredentials({
|
||||
email: data.email.toLowerCase(),
|
||||
password: data.password,
|
||||
password: data.password!,
|
||||
role: data.role,
|
||||
});
|
||||
toast.success("User created with initial credentials");
|
||||
|
||||
@@ -405,7 +405,7 @@ export const createOrganizationUserWithCredentials = async ({
|
||||
organizationId: string;
|
||||
email: string;
|
||||
password: string;
|
||||
role: "member" | "admin";
|
||||
role: string;
|
||||
}) => {
|
||||
const normalizedEmail = email.trim().toLowerCase();
|
||||
const now = new Date();
|
||||
|
||||
Reference in New Issue
Block a user