move to auth validation

This commit is contained in:
2025-09-26 11:04:51 +07:00
parent b022e86e02
commit 373b707954

View File

@@ -1,9 +0,0 @@
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;