[#932] fixed Setting user with numeric password fails

This commit is contained in:
Tarun Thakurani 2018-09-22 18:45:49 +05:30
parent df61ab3127
commit d1427cb6c8

View File

@ -82,7 +82,7 @@ module.exports = {
if (!user.password || this.isHashed(user.password)) {
resolve(null);
} else {
bcrypt.hash(user.password, 10, (err, hash) => {
bcrypt.hash(`${user.password}`, 10, (err, hash) => {
resolve(hash);
});
}