Fix To JS Error

This commit is contained in:
Sagi Dayan 2015-06-09 20:16:29 +03:00
parent 336390d094
commit 5c5d91ca79
3 changed files with 5 additions and 4 deletions

View file

@ -1,4 +1,4 @@
var DEBUG = false;
var DEBUG = true;
var welcome = angular.module('welcome', ['ngMaterial', 'seHub.services', 'ngRoute' , 'ngCookies']);

View file

@ -6,11 +6,12 @@ angular.module('SeHub')
$scope.loadingData = true;
apiService.getUserByToken(token).success(function(data){
console.log(data);
if(data.message == 'No User Found')
console.error("No User Found!");
$scope.user = data._entity;
$rootScope.user = data._entity;
$scope.user = data;
$rootScope.user = data;
if($scope.user.isFirstLogin)
$location.path('/register')
})

View file

@ -1,4 +1,4 @@
var DEBUG = false;
var DEBUG = true;
var service = angular.module('seHub.services', []);