Add skeleton

This commit is contained in:
2025-09-17 13:28:50 +07:00
parent f4ab31b436
commit 945e0083d2
5 changed files with 147 additions and 0 deletions

9
helpers/validateUser.js Normal file
View 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;