diff --git a/controllers/userControllers.js b/controllers/userControllers.js index 55cf989..c83d847 100644 --- a/controllers/userControllers.js +++ b/controllers/userControllers.js @@ -27,6 +27,8 @@ module.exports.registerUser = (request, response) => { const reqBody = request.body; const newUser = new User({ + firstName: reqBody.firstName, + lastName: reqBody.lastName, email: reqBody.email, password: bcrypt.hashSync(reqBody.password, 10), mobileNo: reqBody.mobileNo