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:
commit
70ac9e0f2b
1 changed files with 1 additions and 5 deletions
|
@ -425,11 +425,7 @@ class AppRouter {
|
||||||
onRequestFail(e, data) {
|
onRequestFail(e, data) {
|
||||||
const apiClient = this;
|
const apiClient = this;
|
||||||
|
|
||||||
// 401 means the credentials are broken
|
if (data.status === 403) {
|
||||||
if (data.status === 401) {
|
|
||||||
console.debug('Invalid stored credentials, redirecting to login');
|
|
||||||
appRouter.showLocalLogin(apiClient.serverId());
|
|
||||||
} else if (data.status === 403) {
|
|
||||||
if (data.errorCode === 'ParentalControl') {
|
if (data.errorCode === 'ParentalControl') {
|
||||||
const isCurrentAllowed = appRouter.currentRouteInfo ? (appRouter.currentRouteInfo.route.anonymous || appRouter.currentRouteInfo.route.startup) : true;
|
const isCurrentAllowed = appRouter.currentRouteInfo ? (appRouter.currentRouteInfo.route.anonymous || appRouter.currentRouteInfo.route.startup) : true;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue