This commit is contained in:
Louis Lam
2025-06-15 19:53:07 +08:00
parent 609429bd7e
commit 4d666f8280
6 changed files with 8 additions and 8 deletions

View File

@@ -20,7 +20,7 @@ module.exports.apiKeySocketHandler = (socket) => {
checkLogin(socket);
let clearKey = nanoid(40);
let hashedKey = passwordHash.generate(clearKey);
let hashedKey = await passwordHash.generate(clearKey);
key["key"] = hashedKey;
let bean = await APIKey.save(key, socket.userID);