Compare commits

...

1 Commits

Author SHA1 Message Date
Anthony Lapenna
d08c85def1 Revert "fix(auth): reject main route if logged out (#4197)"
This reverts commit b4c2e5d235.
2020-08-12 14:52:25 +12:00
2 changed files with 1 additions and 2 deletions

View File

@@ -35,7 +35,6 @@ angular.module('portainer.app', ['portainer.oauth']).config([
await StateManager.initialize();
if (!loggedIn) {
$state.go('portainer.auth');
return Promise.reject('Unauthenticated');
}
} catch (err) {
Notifications.error('Failure', err, 'Unable to retrieve application settings');

View File

@@ -31,7 +31,7 @@ angular.module('portainer.app').factory('Authentication', [
}
return !!jwt;
} catch (error) {
return false;
throw error;
}
}