diff --git a/src/libs/routes/user.js b/src/libs/routes/user.js index ccd8ddc604058d541917c29477241aa60866eb5b..c043a66b029197b592469d6ec10c26c7c33c819e 100644 --- a/src/libs/routes/user.js +++ b/src/libs/routes/user.js @@ -12,7 +12,7 @@ const User = require(`${libs}/models/user`); const jwt = require('jwt-simple'); -const required_fields = ["email", "password", "name", "cpf", "schooling", "course", "segment", "role", "institution_name", "state", "city"]; +const required_fields = ["email", "password", "name", "cpf", "schooling", "segment", "role", "institution_name", "state", "city"]; function emailSyntax(email) { @@ -43,10 +43,10 @@ userApp.post('/', (req, res, next) => { }, (req, res, next) => { for (let property of required_fields){ - if(!Object.prototype.hasOwnProperty.call(req.body, property)){ - res.json({success: false, msg: 'Please fill out all mandatory fields.'}); - return; - } + // if(!Object.prototype.hasOwnProperty.call(req.body, property)){ + // res.json({success: false, msg: 'Please fill out all mandatory fields.'}); + // return; + // } } next(); }, (req, res, next) => {