From 643b5adb83c82c230e8dbf54401bce02b745cc0b Mon Sep 17 00:00:00 2001 From: xxeol Date: Tue, 11 Jan 2022 01:14:16 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=8B=89=EB=84=A4=EC=9E=84=2010?= =?UTF-8?q?=EC=9E=90=20=EC=A0=9C=ED=95=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions/api/routes/auth/authSignUpPOST.js | 5 +++++ functions/constants/responseMessage.js | 1 + 2 files changed, 6 insertions(+) diff --git a/functions/api/routes/auth/authSignUpPOST.js b/functions/api/routes/auth/authSignUpPOST.js index 26ea639..1853b08 100644 --- a/functions/api/routes/auth/authSignUpPOST.js +++ b/functions/api/routes/auth/authSignUpPOST.js @@ -28,6 +28,11 @@ module.exports = async (req, res) => { return res.status(statusCode.BAD_REQUEST).send(util.fail(statusCode.BAD_REQUEST, responseMessage.NULL_VALUE)); } + // @error 3. 닉네임 10자 초과 + if (nickname.length > 10){ + return res.status(statusCode.BAD_REQUEST).send(util.fail(statusCode.BAD_REQUEST, responseMessage.TOO_LONG_NICKNAME)); + } + let client; try { diff --git a/functions/constants/responseMessage.js b/functions/constants/responseMessage.js index ecff181..6a47795 100644 --- a/functions/constants/responseMessage.js +++ b/functions/constants/responseMessage.js @@ -6,6 +6,7 @@ module.exports = { CREATED_USER: '회원 가입 성공', DELETE_USER: '회원 탈퇴 성공', ALREADY_SOCIALID: '이미 사용중인 소셜 아이디입니다.', + TOO_LONG_NICKNAME: '닉네임은 10자를 초과할 수 없습니다', // 로그인 LOGIN_SUCCESS: '로그인 성공',