From f9b8e786559dd6d8f9333385a54783ec9f24bff2 Mon Sep 17 00:00:00 2001 From: Isaac Abadi Date: Mon, 6 Sep 2021 16:18:52 -0600 Subject: [PATCH 1/2] Fixed bug where auto builds would create a users file instead of a directory --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 53f2818..67dee9a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,7 +38,7 @@ jobs: Copy-Item -Path ./backend/public -Recurse -Destination ./build/youtubedl-material Copy-Item -Path ./backend/subscriptions -Recurse -Destination ./build/youtubedl-material Copy-Item -Path ./backend/video -Recurse -Destination ./build/youtubedl-material - New-Item -Path ./build/youtubedl-material -Name users + Copy-Item -Path ./backend/users -Recurse -Destination ./build/youtubedl-material Copy-Item -Path ./backend/*.js -Destination ./build/youtubedl-material Copy-Item -Path ./backend/*.json -Destination ./build/youtubedl-material - name: upload build artifact From b25ab70732e8624b181f5d39c1e7994a31457b28 Mon Sep 17 00:00:00 2001 From: KuroSetsuna29 Date: Sat, 11 Sep 2021 02:48:53 -0400 Subject: [PATCH 2/2] 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; }