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