1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 05:45:22 +02:00

fix(auth): rollback changes introduced via #2591 (#2747)

This commit is contained in:
Anthony Lapenna 2019-02-28 11:38:02 +13:00 committed by GitHub
parent 9cbf1f34a7
commit 1eb7e6bacc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View file

@ -44,8 +44,8 @@ function initAuthentication(authManager, Authentication, $rootScope, $state) {
// authManager.redirectWhenUnauthenticated() + unauthenticatedRedirector
// to have more controls on which URL should trigger the unauthenticated state.
$rootScope.$on('unauthenticated', function (event, data) {
if (!_.includes(data.config.url, '/v2/') && ($state.current.name !== 'portainer.auth')) {
$state.go('portainer.auth', {error: 'Your session has expired', redirect: $state.current.name});
if (!_.includes(data.config.url, '/v2/')) {
$state.go('portainer.auth', { error: 'Your session has expired' });
}
});
}