removing console.logs

This commit is contained in:
Jon Lambson 2017-08-29 11:03:13 -06:00
parent 072af04a4d
commit c4cec293a7
2 changed files with 0 additions and 6 deletions

View File

@ -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 });

View File

@ -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;