Fix: local login not possible

This commit is contained in:
lukeIam 2023-09-16 19:45:04 +00:00
parent 763c0f4a3d
commit 942aa93f57

View File

@ -278,7 +278,7 @@ class Auth {
* @param {function} done
*/
async localAuthCheckUserPw(username, password, done) {
const user = Database.userModel.getUserByUsername(username.toLowerCase())
const user = await Database.userModel.getUserByUsername(username.toLowerCase())
if (!user || !user.isActive) {
done(null, null)