Skip to content

Commit

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

0 comments on commit 2728e44

Please sign in to comment.