Skip to content
Snippets Groups Projects
Commit 188e065b authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Merge branch 'change_user' into development

Merges: !77
parents 454e7a54 4d3d3f58
No related branches found
No related tags found
1 merge request!116Release v1.0.0
Pipeline #
......@@ -25,7 +25,7 @@ function emailSyntax(email) {
userApp.get('/schooling', (req, res, next) => {
req.result = [
'Não estudou',
'Não estudou',
'Ensino Fundamental Incompleto',
'Ensino Fundamental Completo',
'Ensino Médio',
......@@ -103,7 +103,7 @@ userApp.get('/:id', (req, res, next) => {
}
if(!user) {
req.statusCode = 404;
next({msg: 'User not found'});
next({msg: 'User not found'});
} else {
let u = user.toObject;
delete u.hashedPassword;
......@@ -120,6 +120,10 @@ userApp.post('/', (req, res, next) => {
password: req.body.password,
name: req.body.name,
cpf: req.body.cpf,
cep: req.body.cep,
complement: req.body.complement,
address: req.body.address,
phone: req.body.phone,
schooling: req.body.schooling,
course: req.body.course,
segment: req.body.segment,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment