diff --git a/controllers/userControllers.js b/controllers/userControllers.js index b88e89d..084e376 100644 --- a/controllers/userControllers.js +++ b/controllers/userControllers.js @@ -32,9 +32,9 @@ module.exports.registerUser = (request, response) => { }) newUser.save().then(save => { - return response.send(`${reqBody.email} is now registered!`) + return response.send(true) }).catch(error => { - return response.send("Error encountered during registration!"); + return response.send(false); }) }