mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-02 10:12:15 +00:00
fix: add email validation to profile form to prevent empty values - Add email format and required validation to profile form schema - Add email validation to API schema and service layer - Improve error handling in user update mutation - Fixes issue where users could save empty email causing sign-in failures -#2613
This commit is contained in:
@@ -322,6 +322,7 @@ export const apiUpdateWebServerMonitoring = z.object({
|
||||
});
|
||||
|
||||
export const apiUpdateUser = createSchema.partial().extend({
|
||||
email: z.string().email("Please enter a valid email address").min(1, "Email is required").optional(),
|
||||
password: z.string().optional(),
|
||||
currentPassword: z.string().optional(),
|
||||
name: z.string().optional(),
|
||||
|
||||
Reference in New Issue
Block a user