From 373b7079547a17388a1c371161f91cd7f895c726 Mon Sep 17 00:00:00 2001 From: Antony Kurniawan Date: Fri, 26 Sep 2025 11:04:51 +0700 Subject: [PATCH] move to auth validation --- helpers/validateUser.js | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 helpers/validateUser.js diff --git a/helpers/validateUser.js b/helpers/validateUser.js deleted file mode 100644 index c904bb4..0000000 --- a/helpers/validateUser.js +++ /dev/null @@ -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;