Add skeleton
This commit is contained in:
9
helpers/validateUser.js
Normal file
9
helpers/validateUser.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const validateUser = (email, password) => {
|
||||
const validEmail = typeof email === "string" && email.trim() !== "";
|
||||
const validPassword =
|
||||
typeof password === "string" && password.trim().length >= 6;
|
||||
|
||||
return validEmail && validPassword;
|
||||
};
|
||||
|
||||
module.exports = validateUser;
|
||||
Reference in New Issue
Block a user