Use bcypt-nodejs getSaltSync
This commit is contained in:
@@ -70,7 +70,7 @@ module.exports = {
|
|||||||
|
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
entity.password = bcrypt.hashSync(entity.password, 10);
|
entity.password = bcrypt.hashSync(entity.password, bcrypt.genSaltSync(10));
|
||||||
entity.bio = entity.bio || "";
|
entity.bio = entity.bio || "";
|
||||||
entity.image = entity.image || null;
|
entity.image = entity.image || null;
|
||||||
entity.createdAt = new Date();
|
entity.createdAt = new Date();
|
||||||
|
|||||||
Reference in New Issue
Block a user