From 6eadb37532063017c0087d6fd1a8845ba0984f2c Mon Sep 17 00:00:00 2001 From: Tzahi12345 Date: Thu, 25 May 2023 22:06:07 -0400 Subject: [PATCH] 4.3.2 release (#929) * Upgraded version to 4.3.2 * Prevent null userid/username registration --- backend/app.js | 4 ++++ chart/Chart.yaml | 2 +- package.json | 2 +- src/app/consts.ts | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/backend/app.js b/backend/app.js index 049d9bc..1077665 100644 --- a/backend/app.js +++ b/backend/app.js @@ -1945,6 +1945,10 @@ app.post('/api/auth/register', optionalJwt, async (req, res) => { res.sendStatus(409); return; } + + if (!userid || !username) { + logger.error(`Registration failed for user ${userid}. Username or userid is invalid.`); + } const new_user = await auth_api.registerUser(userid, username, plaintextPassword); diff --git a/chart/Chart.yaml b/chart/Chart.yaml index 7d01fcf..1d514ad 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -21,4 +21,4 @@ version: 0.1.0 # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "4.3.1" +appVersion: "4.3.2" diff --git a/package.json b/package.json index ad832ce..c34d535 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "youtube-dl-material", - "version": "4.3.1", + "version": "4.3.2", "license": "MIT", "scripts": { "ng": "ng", diff --git a/src/app/consts.ts b/src/app/consts.ts index 004cd7d..74af944 100644 --- a/src/app/consts.ts +++ b/src/app/consts.ts @@ -1 +1 @@ -export const CURRENT_VERSION = 'v4.3.1'; +export const CURRENT_VERSION = 'v4.3.2';