Email verification added-
empty user name test added
This commit is contained in:
parent
ce8efbcaa9
commit
cadb95651e
1 changed files with 3 additions and 2 deletions
|
@ -8,7 +8,8 @@ angular.module('SeHub')
|
||||||
$rootScope.seToken = $cookies['com.sehub.www'];
|
$rootScope.seToken = $cookies['com.sehub.www'];
|
||||||
var token = $rootScope.seToken;
|
var token = $rootScope.seToken;
|
||||||
|
|
||||||
apiService.getUserByToken(token).success(function(data){
|
apiService.getUserByToken(token).success(function(data) // Get user token
|
||||||
|
{
|
||||||
$scope.user = data;
|
$scope.user = data;
|
||||||
|
|
||||||
if(data.message == 'No User Found')
|
if(data.message == 'No User Found')
|
||||||
|
@ -21,7 +22,7 @@ angular.module('SeHub')
|
||||||
$scope.userHasNoName = true;
|
$scope.userHasNoName = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
apiService.getAllCampuses($scope.user.seToken).success(function(data)
|
apiService.getAllCampuses($scope.user.seToken).success(function(data) // Get all the campuses
|
||||||
{
|
{
|
||||||
$scope.campuses = data;
|
$scope.campuses = data;
|
||||||
}).error(function()
|
}).error(function()
|
||||||
|
|
Loading…
Reference in a new issue