1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2016-03-15 00:08:58 -04:00
parent 57d96ea95d
commit dafaa94d70
4 changed files with 10 additions and 49 deletions

View file

@ -2,45 +2,6 @@ define(['loading', 'viewManager', 'skinManager', 'pluginManager', 'backdrop', 'b
var connectionManager;
function isStartup(ctx) {
var path = ctx.pathname;
if (path.indexOf('welcome') != -1) {
return true;
}
if (path.indexOf('connectlogin') != -1) {
return true;
}
if (path.indexOf('login') != -1) {
return true;
}
if (path.indexOf('manuallogin') != -1) {
return true;
}
if (path.indexOf('manualserver') != -1) {
return true;
}
if (path.indexOf('selectserver') != -1) {
return true;
}
if (path.indexOf('localpin') != -1) {
return true;
}
return false;
}
function allowAnonymous(ctx) {
return isStartup(ctx);
}
function redirectToLogin() {
backdrop.clear();
@ -283,7 +244,7 @@ define(['loading', 'viewManager', 'skinManager', 'pluginManager', 'backdrop', 'b
console.log('Emby.Page - user is not authenticated');
if (!allowAnonymous(ctx)) {
if (!route.anonymous) {
console.log('Emby.Page - route does not allow anonymous access, redirecting to login');
redirectToLogin();