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

Add salt to user model

parent fc4cd21d
No related branches found
No related tags found
1 merge request!116Release v1.0.0
Pipeline #
...@@ -15,6 +15,10 @@ var UserSchema = new Schema({ ...@@ -15,6 +15,10 @@ var UserSchema = new Schema({
type: String, type: String,
required: [true, 'O campo Senha é obrigatório.'] required: [true, 'O campo Senha é obrigatório.']
}, },
salt: {
type: String,
required: true
},
name: { name: {
type: String, type: String,
required: [true, 'O campo Nome é obrigatório.'] required: [true, 'O campo Nome é obrigatório.']
......
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