1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 18:21:12 +03:00

AC-325 randomly the black background gets left behind and still visible after the login dialog box has been hidden. Thinking this might be a timing thing. Moved call to modal('hide') up in the list of steps processed on a successful login.

This commit is contained in:
chouseknecht 2013-07-31 17:23:47 -04:00
parent 30aa1d74d8
commit dd89a82a2c

View File

@ -53,6 +53,7 @@ function Authenticate($window, $scope, $rootScope, $location, Authorization, Tog
var token;
Authorization.retrieveToken(username, password)
.success( function(data, status, headers, config) {
$('#login-modal').modal('hide');
token = data.token;
Authorization.setToken(data.token);
$scope.reset();
@ -64,11 +65,10 @@ function Authenticate($window, $scope, $rootScope, $location, Authorization, Tog
$rootScope.token = token;
$rootScope.userLoggedIn = true;
$rootScope.token_expire = today.getTime();
// Get all the profile/access info regarding the logged in user
Authorization.getUser()
.success(function(data, status, headers, config) {
$('#login-modal').modal('hide');
Authorization.setUserInfo(data);
Authorization.getLicense()
.success(function(data, status, headers, config) {