🐛 Fix schema validation for user creation
This commit is contained in:
1 parent
061ae1ae6c
commit
961b8024ab
3 files changed
+22
-23
No files matched your search
@@ -19,6 +19,12 @@ export const signUpFormSchema = z
|
||||
path: ['passwordConfirmation'],
|
||||
});
|
||||
|
||||
export const createNewUserSchema = z.object({
|
||||
username: z.string(),
|
||||
email: z.string().email().optional(),
|
||||
password: z.string().min(8).max(100),
|
||||
});
|
||||
|
||||
export const colorSchemeParser = z
|
||||
.enum(['light', 'dark', 'environment'])
|
||||
.default('environment')
|
||||
|
||||
Reference in new issue
Block a user