mirror of
https://github.com/ansible/awx.git
synced 2026-03-23 20:05:03 -02:30
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:
@@ -53,6 +53,7 @@ function Authenticate($window, $scope, $rootScope, $location, Authorization, Tog
|
|||||||
var token;
|
var token;
|
||||||
Authorization.retrieveToken(username, password)
|
Authorization.retrieveToken(username, password)
|
||||||
.success( function(data, status, headers, config) {
|
.success( function(data, status, headers, config) {
|
||||||
|
$('#login-modal').modal('hide');
|
||||||
token = data.token;
|
token = data.token;
|
||||||
Authorization.setToken(data.token);
|
Authorization.setToken(data.token);
|
||||||
$scope.reset();
|
$scope.reset();
|
||||||
@@ -68,7 +69,6 @@ function Authenticate($window, $scope, $rootScope, $location, Authorization, Tog
|
|||||||
// Get all the profile/access info regarding the logged in user
|
// Get all the profile/access info regarding the logged in user
|
||||||
Authorization.getUser()
|
Authorization.getUser()
|
||||||
.success(function(data, status, headers, config) {
|
.success(function(data, status, headers, config) {
|
||||||
$('#login-modal').modal('hide');
|
|
||||||
Authorization.setUserInfo(data);
|
Authorization.setUserInfo(data);
|
||||||
Authorization.getLicense()
|
Authorization.getLicense()
|
||||||
.success(function(data, status, headers, config) {
|
.success(function(data, status, headers, config) {
|
||||||
|
|||||||
Reference in New Issue
Block a user