mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
[#932] fixed Setting user with numeric password fails
This commit is contained in:
parent
df61ab3127
commit
d1427cb6c8
@ -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);
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user