mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 04:10:44 -03:30
reverting authentication slightly to deal with bug for now
This commit is contained in:
parent
e035e4e98b
commit
e00b929866
@ -105,16 +105,6 @@ export function Authenticate($log, $cookieStore, $compile, $window, $rootScope,
|
||||
if ($location.path() === '/logout') {
|
||||
//if logout request, clear AuthToken and user session data
|
||||
Authorization.logout();
|
||||
} else if ($location.path() === '/login') {
|
||||
if ($rootScope.enteredPath) {
|
||||
$rootScope.lastPath = $rootScope.enteredPath;
|
||||
} else if (!$rootScope.lastPath) {
|
||||
// your last path was home
|
||||
$cookieStore.remove('lastPath');
|
||||
$rootScope.lastPath = '/home';
|
||||
}
|
||||
} else {
|
||||
$rootScope.enteredPath = $location.path();
|
||||
}
|
||||
|
||||
e = angular.element(document.getElementById('login-modal-content'));
|
||||
|
||||
@ -70,7 +70,7 @@ angular.module('AuthService', ['ngCookies', Utilities.name])
|
||||
$cookieStore.put( 'lastPath', '/portal');
|
||||
$rootScope.lastPath = '/portal';
|
||||
}
|
||||
else if ($cookieStore.get('lastPath') !== '/home' || $cookieStore.get('lastPath') !== '/'){
|
||||
else if ($cookieStore.get('lastPath') !== '/home' || $cookieStore.get('lastPath') !== '/' || $cookieStore.get('lastPath') !== '/login' || $cookieStore.get('lastPath') !== '/logout'){
|
||||
// do nothing
|
||||
$rootScope.lastPath = $cookieStore.get('lastPath');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user