fix(auth): auth failing with jellyfin login is disabled

This commit is contained in:
fallenbagel
2024-05-28 19:51:48 +05:00
parent 43e0a29543
commit fe8c781cba

View File

@@ -231,7 +231,7 @@ authRoutes.post('/jellyfin', async (req, res, next) => {
//Make sure jellyfin login is enabled, but only if jellyfin is not already configured
if (
settings.main.mediaServerType !== MediaServerType.JELLYFIN &&
settings.jellyfin.ip !== ''
settings.main.mediaServerType != MediaServerType.NOT_CONFIGURED
) {
return res.status(500).json({ error: 'Jellyfin login is disabled' });
} else if (!body.username) {