Prepare Kalendartool for MPM and disable invites
This commit is contained in:
@@ -46,7 +46,6 @@ export const registerSchema = z
|
||||
email: emailSchema,
|
||||
password: passwordSchema,
|
||||
username: usernameSchema.optional(),
|
||||
inviteToken: z.string().trim().min(10).max(200).optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
@@ -117,16 +116,8 @@ export const updateReservationSchema = z
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const createInviteSchema = z
|
||||
.object({
|
||||
calendarId: z.string().trim().min(1),
|
||||
expiresInDays: z.number().int().min(1).max(90).optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
/**
|
||||
* Mitglied per E-Mail zu einem Kalender hinzufuegen (DB-basiertes
|
||||
* Einladungssystem, ersetzt den Token-Link-Flow in der Verwaltung).
|
||||
* Vorhandenen Benutzer per E-Mail zu einem Kalender hinzufuegen.
|
||||
*/
|
||||
export const addMemberSchema = z
|
||||
.object({
|
||||
@@ -156,4 +147,4 @@ export const updateUsernameSchema = z
|
||||
.object({
|
||||
username: usernameSchema.nullable(),
|
||||
})
|
||||
.strict();
|
||||
.strict();
|
||||
|
||||
Reference in New Issue
Block a user