Merge pull request #2575 from jellyfin/revert-2536-fix-invalid-credentials

Revert "fix: redirect to login if stored credentials are invalid"
This commit is contained in:
Bill Thornton 2021-04-10 15:34:25 -04:00 committed by GitHub
commit 70ac9e0f2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;