Update register user controller response.send

master
parent 7b2a302452
commit 972be4e544

@ -32,9 +32,9 @@ module.exports.registerUser = (request, response) => {
}) })
newUser.save().then(save => { newUser.save().then(save => {
return response.send(`${reqBody.email} is now registered!`) return response.send(true)
}).catch(error => { }).catch(error => {
return response.send("Error encountered during registration!"); return response.send(false);
}) })
} }

Loading…
Cancel
Save