mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
Merge pull request #2002 from tthakurani/master
Converted password to a string before creating hash
This commit is contained in:
commit
3dc4618cb8
@ -82,7 +82,7 @@ module.exports = {
|
|||||||
if (!user.password || this.isHashed(user.password)) {
|
if (!user.password || this.isHashed(user.password)) {
|
||||||
resolve(null);
|
resolve(null);
|
||||||
} else {
|
} else {
|
||||||
bcrypt.hash(user.password, 10, (err, hash) => {
|
bcrypt.hash(`${user.password}`, 10, (err, hash) => {
|
||||||
resolve(hash);
|
resolve(hash);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user