mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-31 15:09:39 +02:00
make username lowercase
This commit is contained in:
parent
58ba0d07b0
commit
1bf2e23f5d
8 changed files with 18 additions and 15 deletions
|
@ -21,6 +21,7 @@ const bodySchema = z
|
|||
.object({
|
||||
email: z
|
||||
.string()
|
||||
.toLowerCase()
|
||||
.optional()
|
||||
.refine((data) => {
|
||||
if (data) {
|
||||
|
@ -28,7 +29,7 @@ const bodySchema = z
|
|||
}
|
||||
return true;
|
||||
}),
|
||||
username: z.string().nonempty(),
|
||||
username: z.string().nonempty().toLowerCase(),
|
||||
name: z.string().optional(),
|
||||
type: z.enum(["internal", "oidc"]).optional(),
|
||||
idpId: z.number().optional(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue