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

fix bcrypt-nodejs error

parent e35f4126
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!27Implement UC201 - Select Location
Pipeline #
......@@ -64,7 +64,7 @@ UserSchema.pre('save', function (next) {
if (err) {
return next(err);
}
bcrypt.hash(user.password, salt, function (err, hash) {
bcrypt.hash(user.password, salt, null, function (err, hash) {
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