You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnres.status(400).send({msg: "Please enter all fields"});
16
-
}
23
+
24
+
// Brief Validation
25
+
if(name.length<3)
26
+
returnres.status(406).send({msg: "Name must have at least 3 characters"});
17
27
28
+
if(!emailRegex.test(email))
29
+
returnres.status(406).send({msg: "Please provide valid email"});
30
+
31
+
if(!passwordRegex.test(password))
32
+
returnres.status(406).send({
33
+
msg: "Please provide password meeting following criteria: Minimum Length: 8, Contains at least 1 special char, 1 number, 1 Capital Letter & 1 Small Letter"
0 commit comments