!HOTFIX! 비밀번호 검증 추가
This commit is contained in:
parent
ce0150bc02
commit
59db9d6e61
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user