mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-09 04:41:29 +03:00
Fixed bug that prevented user registration from occuring, and added new "Login" option to the hamburger menu when appropriate
Related: made it so non-logged in users (in multi user mode) don't have the option to go "home" or "subscriptions" or "downloads". It would error regardless, but it looks cleaner now
This commit is contained in:
@@ -1835,7 +1835,7 @@ const optionalJwt = function (req, res, next) {
|
||||
res.sendStatus(401);
|
||||
return;
|
||||
}
|
||||
} else if (multiUserMode && !(req.path.includes('/api/auth/register') && !req.query.jwt)) { // registration should get passed through
|
||||
} else if (multiUserMode && !(req.path.includes('/api/auth/register') && !(req.path.includes('/api/config')) && !req.query.jwt)) { // registration should get passed through
|
||||
if (!req.query.jwt) {
|
||||
res.sendStatus(401);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user