From ff0a46a004fff34c03bba003eaf4746bec9ab515 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Sat, 10 Apr 2021 15:34:25 -0400 Subject: [PATCH] Merge pull request #2575 from jellyfin/revert-2536-fix-invalid-credentials Revert "fix: redirect to login if stored credentials are invalid" (cherry picked from commit 70ac9e0f2bfb23b276029ff084692e079616cc54) Signed-off-by: Joshua M. Boniface --- src/components/appRouter.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/appRouter.js b/src/components/appRouter.js index 8e2845a206..fd428d9bd9 100644 --- a/src/components/appRouter.js +++ b/src/components/appRouter.js @@ -425,11 +425,7 @@ class AppRouter { onRequestFail(e, data) { const apiClient = this; - // 401 means the credentials are broken - if (data.status === 401) { - console.debug('Invalid stored credentials, redirecting to login'); - appRouter.showLocalLogin(apiClient.serverId()); - } else if (data.status === 403) { + if (data.status === 403) { if (data.errorCode === 'ParentalControl') { const isCurrentAllowed = appRouter.currentRouteInfo ? (appRouter.currentRouteInfo.route.anonymous || appRouter.currentRouteInfo.route.startup) : true;