정민우

Merge branch 'backend' into 'master'

[Edit] User Register Requirekey 추가



See merge request !3
......@@ -9,6 +9,12 @@ const Op = Sequelize.Op
exports.userRegister = async (req, res) => {
try {
const requiredKey = ['userId', 'password', 'name', 'phone', 'email']
const required = checkRequiredExist(req.body, requiredKey)
if (required) {
logging('user', 'error', { code: 400, message: `missingKey:${required}` }, req)
return sendError(res, 400, `missingKey:${required}`)
}
let registerData = setValues(req.body, ['userId', 'password', 'name', 'phone', 'email'])
if (typeof registerData.password !== 'undefined' && registerData.password !== null) {
......