removing console.logs
This commit is contained in:
parent
072af04a4d
commit
c4cec293a7
|
@ -120,17 +120,12 @@ app.run(['$rootScope', '$state', 'Auth', '$location', function($rootScope, $stat
|
|||
$rootScope.redirectedURL = toState.url;
|
||||
var query = $location.search();
|
||||
$rootScope.urlArray.push($rootScope.redirectedURL);
|
||||
// if ($rootScope.urlArray.length > 1) {
|
||||
// $rootScope.redirectedURL = $rootScope.urlArray[0];
|
||||
// $rootScope.urlArray = [];
|
||||
// }
|
||||
if (requiresLogin && !Auth.isLoggedIn()) {
|
||||
event.preventDefault();
|
||||
if (!angular.equals(toState.data.session, {})) {
|
||||
toState.data.session.token = OAUTH3.jwt.decode(query.access_token);
|
||||
toState.data.session.refresh = OAUTH3.jwt.decode(query.refresh_token);
|
||||
Auth.add(query);
|
||||
console.log('go here', $rootScope.redirectedURL);
|
||||
$state.go('app.' + $rootScope.redirectedURL);
|
||||
} else {
|
||||
$state.go('splash-page', { 'toState': toState.name });
|
||||
|
|
|
@ -22,7 +22,6 @@ app.factory('Auth', [
|
|||
return Auth.sessions || false;
|
||||
}
|
||||
, add: function (session) {
|
||||
console.log(session);
|
||||
var obj = JSON.parse(localStorage.getItem(dapSessions) || 'null') || {};
|
||||
var dapName = 'dap-' + session.subject + '|' + session.issuer;
|
||||
|
||||
|
|
Loading…
Reference in New Issue