feat: make family name optional (#476)

This commit is contained in:
Kyle Mendell
2025-04-25 09:52:09 -05:00
committed by GitHub
parent 662506260e
commit 630327c979
3 changed files with 3 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ type UserCreateDto struct {
Username string `json:"username" binding:"required,username,min=2,max=50"`
Email string `json:"email" binding:"required,email"`
FirstName string `json:"firstName" binding:"required,min=1,max=50"`
LastName string `json:"lastName" binding:"required,min=1,max=50"`
LastName string `json:"lastName" binding:"max=50"`
IsAdmin bool `json:"isAdmin"`
Locale *string `json:"locale"`
Disabled bool `json:"disabled"`

View File

@@ -7,7 +7,7 @@ export type User = {
username: string;
email: string;
firstName: string;
lastName: string;
lastName?: string;
isAdmin: boolean;
userGroups: UserGroup[];
customClaims: CustomClaim[];

View File

@@ -30,7 +30,7 @@
const formSchema = z.object({
firstName: z.string().min(1).max(50),
lastName: z.string().min(1).max(50),
lastName: z.string().max(50),
username: z
.string()
.min(2)