From ce56e68768995c2bb1139d88cc63f48565138672 Mon Sep 17 00:00:00 2001
From: Lucas Gabriel Lima <lgl15@inf.ufpr.br>
Date: Fri, 16 Sep 2016 10:06:02 -0300
Subject: [PATCH] update salt generation

---
 src/libs/models/user.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libs/models/user.js b/src/libs/models/user.js
index 30cfe93a..1635866e 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);
       }
-- 
GitLab