mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-17 21:41:47 -05:00
Store the preAuthUrl on rootScope instead of in the cookie
This commit is contained in:
@@ -88,7 +88,7 @@ export default ['$log', '$cookies', '$compile', '$rootScope',
|
||||
}
|
||||
};
|
||||
|
||||
preAuthUrl = $cookies.get('preAuthUrl');
|
||||
preAuthUrl = $rootScope.preAuthUrl;
|
||||
|
||||
$log.debug('User session expired: ' + sessionExpired);
|
||||
$log.debug('Last URL: ' + lastPath());
|
||||
@@ -116,7 +116,7 @@ export default ['$log', '$cookies', '$compile', '$rootScope',
|
||||
Wait("stop");
|
||||
if(!Empty(preAuthUrl)){
|
||||
$location.path(preAuthUrl);
|
||||
$cookies.remove('preAuthUrl');
|
||||
delete $rootScope.preAuthUrl;
|
||||
}
|
||||
else {
|
||||
if (lastPath() && lastUser()) {
|
||||
|
||||
Reference in New Issue
Block a user