Commit 04e79b27ebae2fa27a593fdee51e38658741ee85

Authored by Victor Costa
1 parent 43ab0478

Fix logout

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/app/components/auth/auth.service.js
@@ -36,10 +36,10 @@ @@ -36,10 +36,10 @@
36 } 36 }
37 37
38 function logout () { 38 function logout () {
39 - $http.jsonp('/account/logout'); //FIXME logout from noosfero to sync login state  
40 Session.destroy(); 39 Session.destroy();
41 $rootScope.currentUser = undefined; 40 $rootScope.currentUser = undefined;
42 $rootScope.$broadcast(AUTH_EVENTS.logoutSuccess); 41 $rootScope.$broadcast(AUTH_EVENTS.logoutSuccess);
  42 + $http.jsonp('/account/logout'); //FIXME logout from noosfero to sync login state
43 } 43 }
44 44
45 function isAuthenticated () { 45 function isAuthenticated () {