move to auth validation
This commit is contained in:
@@ -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;
|
|
||||||
Reference in New Issue
Block a user