From f2bc6d7c545983c3fd2d370b46775bf0a824ca2c Mon Sep 17 00:00:00 2001 From: 0xsysr3ll <0xsysr3ll@pm.me> Date: Wed, 25 Feb 2026 22:37:48 +0100 Subject: [PATCH] fix(settings): handle email comparison for Jellyfin users --- server/routes/user/usersettings.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/routes/user/usersettings.ts b/server/routes/user/usersettings.ts index 6628b2622..0d1ca6aa6 100644 --- a/server/routes/user/usersettings.ts +++ b/server/routes/user/usersettings.ts @@ -305,8 +305,11 @@ userSettingsRoutes.post<{ authToken: string }>( }); } - // Emails do not match - if (user.email !== account.email) { + // Jellyfin users often have no email. + if ( + isMainPlex && + user.email?.toLowerCase() !== account.email?.toLowerCase() + ) { return res.status(422).json({ message: 'This Plex account is registered under a different email address.',