diff --git a/src/libs/models/user.js b/src/libs/models/user.js index 30cfe93a572eee1831db771c6c123d6fc8f651f5..1635866e2a97444f0f0b048cc7c00839badf308b 100644 --- a/src/libs/models/user.js +++ b/src/libs/models/user.js @@ -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); }