Skip to content
Snippets Groups Projects
Commit 32fbeca7 authored by Lucas Gabriel Lima's avatar Lucas Gabriel Lima
Browse files

small fix on model validation

parent a0a55804
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!30Auth
Pipeline #
......@@ -8,7 +8,7 @@ const Schema = mongoose.Schema;
var UserSchema = new Schema({
email: {
type: String,
unique: true,
unique: true,
required: [true, 'O campo Email é obrigatório.']
},
password: {
......@@ -21,7 +21,7 @@ var UserSchema = new Schema({
},
cpf:{
type: String,
unique: [true, 'O CPF informado já está cadastrado.'],
unique: true,
required: [true, 'O campo CPF é obrigatório.']
},
schooling: {
......
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