Skip to content

Commit

Permalink
fix(nodejs): correctly set ajax request's body for login
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitjes committed Nov 20, 2017
1 parent b205a3d commit 5b61b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ plugin.login = toPromise(function (username, password, opts, callback) {
method : 'POST',
url : getSessionUrl(db),
headers : {'Content-Type': 'application/json'},
body : JSON.stringify({name: username, password: password})
body : {name: username, password: password}
}, opts.ajax || {});
ajaxCore(ajaxOpts, wrapError(callback));
});
Expand Down

0 comments on commit 5b61b00

Please sign in to comment.