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

update salt generation

parent bdae6923
No related branches found
No related tags found
1 merge request!20Auth
Pipeline #
......@@ -16,7 +16,7 @@ var UserSchema = new Schema({
UserSchema.pre('save', function(next){
var user = this;
if(this.isModified('password') || this.isNew){
bcrypt.genSalt(10, function (err, salt){
bcrypt.genSalt(128, function (err, salt){
if(err){
return next(err);
}
......
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