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:
parent
30aa1d74d8
commit
dd89a82a2c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user