mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-04 03:02:16 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -301,7 +301,7 @@ export const updateUser = async (userId: string, userData: Partial<User>) => {
|
||||
if (!userData.email || userData.email.trim() === "") {
|
||||
throw new Error("Email is required and cannot be empty");
|
||||
}
|
||||
|
||||
|
||||
// Basic email format validation
|
||||
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
||||
if (!emailRegex.test(userData.email)) {
|
||||
|
||||
Reference in New Issue
Block a user