Logout works

This commit is contained in:
Philippe Vienne 2016-04-17 23:33:54 +02:00
parent 320c1b5af2
commit b770b05a27

View file

@ -136,6 +136,10 @@
}, 500);
return false;
};
$scope.logout = function(){
$rootScope.refresh_token = "";
$rootScope.access_token = "";
};
$scope.refresh = function(){
if($rootScope.refresh_token)
$http.get('/refresh_token',{params: {refresh_token: $rootScope.refresh_token}})