From b25ab70732e8624b181f5d39c1e7994a31457b28 Mon Sep 17 00:00:00 2001 From: KuroSetsuna29 Date: Sat, 11 Sep 2021 02:48:53 -0400 Subject: [PATCH] Fixed issue preventing LDAP to create new account --- backend/authentication/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/authentication/auth.js b/backend/authentication/auth.js index 7992aac..0b6639e 100644 --- a/backend/authentication/auth.js +++ b/backend/authentication/auth.js @@ -140,7 +140,7 @@ exports.registerUser = async function(req, res) { exports.login = async (username, password) => { const user = await db_api.getRecord('users', {name: username}); - if (!user) { logger.error(`User ${username} not found`); false } + if (!user) { logger.error(`User ${username} not found`); return false } if (user.auth_method && user.auth_method !== 'internal') { return false } return await bcrypt.compare(password, user.passhash) ? user : false; }