Use bcypt-nodejs getSaltSync

This commit is contained in:
Richard Feldman
2018-05-04 20:01:07 -04:00
parent fe62b9304a
commit 9054122539

View File

@@ -70,7 +70,7 @@ module.exports = {
})
.then(() => {
entity.password = bcrypt.hashSync(entity.password, 10);
entity.password = bcrypt.hashSync(entity.password, bcrypt.genSaltSync(10));
entity.bio = entity.bio || "";
entity.image = entity.image || null;
entity.createdAt = new Date();