From 59db9d6e61bb3c01d54d68d8fe9665f890daed1b Mon Sep 17 00:00:00 2001 From: fiore Date: Mon, 31 Mar 2025 15:28:44 +0900 Subject: [PATCH] =?UTF-8?q?!HOTFIX!=20=EB=B9=84=EB=B0=80=EB=B2=88=ED=98=B8?= =?UTF-8?q?=20=EA=B2=80=EC=A6=9D=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/users.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/routes/users.js b/routes/users.js index 0679aea..0279c43 100644 --- a/routes/users.js +++ b/routes/users.js @@ -29,6 +29,11 @@ router.post('/signup', async function (req, res, next) { return res.status(400).send("모든 필드를 입력하세요.") } + + if(password.length < 6 || password.length > 18){ + return res.status(400).send("비밀번호는 6자 이상 18자 이하로 입력해야합니다.") + } + // 이메일 형식 검증 const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; if (!emailRegex.test(email)) {