Logout works
This commit is contained in:
parent
320c1b5af2
commit
b770b05a27
1 changed files with 4 additions and 0 deletions
|
@ -136,6 +136,10 @@
|
||||||
}, 500);
|
}, 500);
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
$scope.logout = function(){
|
||||||
|
$rootScope.refresh_token = "";
|
||||||
|
$rootScope.access_token = "";
|
||||||
|
};
|
||||||
$scope.refresh = function(){
|
$scope.refresh = function(){
|
||||||
if($rootScope.refresh_token)
|
if($rootScope.refresh_token)
|
||||||
$http.get('/refresh_token',{params: {refresh_token: $rootScope.refresh_token}})
|
$http.get('/refresh_token',{params: {refresh_token: $rootScope.refresh_token}})
|
||||||
|
|
Loading…
Reference in a new issue