4.0.1 commit
This commit is contained in:
parent
ccca94e8ba
commit
0bdb803966
24 changed files with 425 additions and 347 deletions
|
@ -119,7 +119,11 @@ JamStash.config(function ($httpProvider) {
|
|||
if (globals.settings.Username != "" && globals.settings.Password != "" && globals.settings.Server != "") {
|
||||
$rootScope.loggedIn = true;
|
||||
}
|
||||
if (!$rootScope.loggedIn && $location.path() != '/settings' && $location.path() != '/archive') {
|
||||
var path = '';
|
||||
path = $location.path();
|
||||
if (globals.settings.Debug) { console.log('Logged In: ' + $rootScope.loggedIn); }
|
||||
if (globals.settings.Debug) { console.log('Current Path: ' + path); }
|
||||
if (!$rootScope.loggedIn && path != '/settings' && path.search('archive') < 0) {
|
||||
$location.path('/settings');
|
||||
}
|
||||
return request;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue