mirror of
https://github.com/portainer/portainer.git
synced 2025-08-05 05:45:22 +02:00
parent
9cbf1f34a7
commit
1eb7e6bacc
3 changed files with 8 additions and 8 deletions
|
@ -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' });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue