mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 04:10:44 -03:30
Fix for session limit per user
This commit is contained in:
parent
4466fc80a2
commit
4d1c43f4bd
@ -754,7 +754,7 @@ var tower = angular.module('Tower', [
|
||||
control_socket.on("limit_reached", function(data) {
|
||||
$log.debug(data.reason);
|
||||
$rootScope.sessionTimer.expireSession('session_limit');
|
||||
$location.url('/login');
|
||||
$state.go('signOut');
|
||||
});
|
||||
}
|
||||
openSocket();
|
||||
|
||||
@ -40,7 +40,6 @@ export default
|
||||
// attached to the $rootScope.
|
||||
var features = FeaturesService.get();
|
||||
if(features){
|
||||
|
||||
scope.loadingLicense = false;
|
||||
scope.activityStreamActive = (toState.name === 'activityStream') ? true : false;
|
||||
scope.showActivityStreamButton = (FeaturesService.featureEnabled('activity_streams') || toState.name ==='activityStream') ? true : false;
|
||||
|
||||
@ -25,8 +25,8 @@
|
||||
responseError: function(rejection){
|
||||
if(rejection && rejection.data && rejection.data.detail && rejection.data.detail === "Maximum per-user sessions reached"){
|
||||
$rootScope.sessionTimer.expireSession('session_limit');
|
||||
var location = $injector.get('$location');
|
||||
location.url('/login');
|
||||
var state = $injector.get('$state');
|
||||
state.go('signOut');
|
||||
return $q.reject(rejection);
|
||||
}
|
||||
return $q.reject(rejection);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user