Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dpd.users.logout and dpd.users.exec('logout') both fail. #7

Open
fotoflo opened this issue Feb 17, 2015 · 2 comments
Open

dpd.users.logout and dpd.users.exec('logout') both fail. #7

fotoflo opened this issue Feb 17, 2015 · 2 comments

Comments

@fotoflo
Copy link
Contributor

fotoflo commented Feb 17, 2015

dpd.users.logout and dpd.users.exec('logout') both fail.

The former is undefined and the latter:

dpd.users.exec('logout') gets
POST http://localhost:2403/users/logout 400 (Bad Request)

Also tried adding the following function to the library with no success (get a 404 error)

            dpd[d].logout = function(s, e) {
                return $http.post(serverRoot + '/logout', null, { withCredentials: true }).success(function(data, status, headers, config) {
                  return;
                }).success(checkUndefinedFunc(s)).error(ef).error(checkUndefinedFunc(e));
            };
@fotoflo
Copy link
Contributor Author

fotoflo commented Feb 17, 2015

Whoops, also tried btw

            dpd[d].logout = function(s, e) {
                return $http.post(serverRoot + '/users//logout', null, { withCredentials: true }).success(function(data, status, headers, config) {
                  return;
                }).success(checkUndefinedFunc(s)).error(ef).error(checkUndefinedFunc(e));
            };

@slively
Copy link
Owner

slively commented Feb 18, 2015

You may just need to look at how the regular dpd.js does this and submit a PR to mimic the behavior here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants