Fix To JS Error
This commit is contained in:
parent
336390d094
commit
5c5d91ca79
3 changed files with 5 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
var DEBUG = false;
|
var DEBUG = true;
|
||||||
|
|
||||||
var welcome = angular.module('welcome', ['ngMaterial', 'seHub.services', 'ngRoute' , 'ngCookies']);
|
var welcome = angular.module('welcome', ['ngMaterial', 'seHub.services', 'ngRoute' , 'ngCookies']);
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,12 @@ angular.module('SeHub')
|
||||||
$scope.loadingData = true;
|
$scope.loadingData = true;
|
||||||
|
|
||||||
apiService.getUserByToken(token).success(function(data){
|
apiService.getUserByToken(token).success(function(data){
|
||||||
|
console.log(data);
|
||||||
if(data.message == 'No User Found')
|
if(data.message == 'No User Found')
|
||||||
console.error("No User Found!");
|
console.error("No User Found!");
|
||||||
|
|
||||||
$scope.user = data._entity;
|
$scope.user = data;
|
||||||
$rootScope.user = data._entity;
|
$rootScope.user = data;
|
||||||
if($scope.user.isFirstLogin)
|
if($scope.user.isFirstLogin)
|
||||||
$location.path('/register')
|
$location.path('/register')
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
var DEBUG = false;
|
var DEBUG = true;
|
||||||
|
|
||||||
var service = angular.module('seHub.services', []);
|
var service = angular.module('seHub.services', []);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue