diff --git a/README.md b/README.md index cf09064..8ed8987 100644 --- a/README.md +++ b/README.md @@ -550,7 +550,7 @@ From [lockit-login](https://github.com/zemirco/lockit-login) - GET /login - POST /login - POST /login/two-factor - - GET /logout + - POST /logout From [lockit-forgot-password](https://github.com/zemirco/lockit-forgot-password) diff --git a/examples/angular/public/js/services.js b/examples/angular/public/js/services.js index 8f02814..8f7b5fa 100644 --- a/examples/angular/public/js/services.js +++ b/examples/angular/public/js/services.js @@ -24,7 +24,7 @@ services.factory('user', function($http, $cookies, $q){ }, logout: function() { var deferred = $q.defer(); - $http.get('/rest/logout') + $http.post('/rest/logout') .success(function() { delete $cookies.user; deferred.resolve(); diff --git a/test/events.test.js b/test/events.test.js index 739acc8..697a2ad 100644 --- a/test/events.test.js +++ b/test/events.test.js @@ -89,7 +89,7 @@ describe('events', function() { done(); }); agent - .get('/logout') + .post('/logout') .end(function(err) { if (err) {console.log(err); } });