mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-20 15:51:14 +08:00
[Eliminate Blocking] User related (#5928)
This commit is contained in:
@@ -5,10 +5,10 @@ const saltRounds = 10;
|
||||
/**
|
||||
* Hash a password
|
||||
* @param {string} password Password to hash
|
||||
* @returns {string} Hash
|
||||
* @returns {Promise<string>} Hash
|
||||
*/
|
||||
exports.generate = function (password) {
|
||||
return bcrypt.hashSync(password, saltRounds);
|
||||
return bcrypt.hash(password, saltRounds);
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user