Updated code for registerUser controller, added mobileNo

master
parent abcf4ea45f
commit a84c9b8ca4

@ -28,7 +28,8 @@ module.exports.registerUser = (request, response) => {
const newUser = new User({
email: reqBody.email,
password: bcrypt.hashSync(reqBody.password, 10)
password: bcrypt.hashSync(reqBody.password, 10),
mobileNo: reqBody.mobileNo
})
newUser.save().then(save => {

Loading…
Cancel
Save