diff --git a/src/components/pages/ServerConfigurationPage.tsx b/src/components/pages/ServerConfigurationPage.tsx index fc9c008..fd0a9fc 100644 --- a/src/components/pages/ServerConfigurationPage.tsx +++ b/src/components/pages/ServerConfigurationPage.tsx @@ -178,7 +178,6 @@ const ServerConfigurationPage = () => { placeholder={`Password${serverUrlOverride ? "" : " - not required if Auth Token is specified"}`} value={password} onChange={handlePasswordChange} - required={!authToken} /> diff --git a/src/lib/jellyfin-api.ts b/src/lib/jellyfin-api.ts index efd0876..0117cb9 100644 --- a/src/lib/jellyfin-api.ts +++ b/src/lib/jellyfin-api.ts @@ -21,7 +21,7 @@ export const getAuthenticatedJellyfinApi = async (): Promise => { const password = getCacheValue(JELLYFIN_PASSWORD_CACHE_KEY) ?? ""; const jellyfinAuthToken = getCacheValue(JELLYFIN_AUTH_TOKEN_CACHE_KEY); - if (!serverUrl || (!(username && password) && !jellyfinAuthToken)) { + if (!serverUrl || (!username && !jellyfinAuthToken)) { throw new Error( "Missing credentials in localStorage. Please configure your Jellyfin connection.", );