From bf66e13377111c89b22f1d64296fe3065747d078 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 17 Feb 2024 16:06:25 -0600 Subject: [PATCH] Update jsdocs --- server/Auth.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/Auth.js b/server/Auth.js index 9dfe2416..cec3bc33 100644 --- a/server/Auth.js +++ b/server/Auth.js @@ -656,7 +656,7 @@ class Auth { * Checks if a username and password tuple is valid and the user active. * @param {string} username * @param {string} password - * @param {function} done + * @param {Promise} done */ async localAuthCheckUserPw(username, password, done) { // Load the user given it's username @@ -698,7 +698,7 @@ class Auth { /** * Hashes a password with bcrypt. * @param {string} password - * @returns {string} hash + * @returns {Promise} hash */ hashPass(password) { return new Promise((resolve) => { @@ -732,8 +732,8 @@ class Auth { /** * * @param {string} password - * @param {*} user - * @returns {boolean} + * @param {import('./models/User')} user + * @returns {Promise} */ comparePassword(password, user) { if (user.type === 'root' && !password && !user.pash) return true