4.3.2 release (#929)

* Upgraded version to 4.3.2
* Prevent null userid/username registration
This commit is contained in:
Tzahi12345
2023-05-25 22:06:07 -04:00
committed by GitHub
parent 2c61260e0f
commit 6eadb37532
4 changed files with 7 additions and 3 deletions

View File

@@ -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);