diff --git a/src/app/components/auth/auth.service.js b/src/app/components/auth/auth.service.js index 29837e1..7cd3f8c 100644 --- a/src/app/components/auth/auth.service.js +++ b/src/app/components/auth/auth.service.js @@ -36,10 +36,10 @@ } function logout () { - $http.jsonp('/account/logout'); //FIXME logout from noosfero to sync login state Session.destroy(); $rootScope.currentUser = undefined; $rootScope.$broadcast(AUTH_EVENTS.logoutSuccess); + $http.jsonp('/account/logout'); //FIXME logout from noosfero to sync login state } function isAuthenticated () { -- libgit2 0.21.2