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 14, 2017
1 parent a7b35ae commit f8ac9b3
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 @@ -93,7 +93,7 @@ exports.login = pouchdbUtils.toPromise(function (username, password, opts, callb
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 || {});
pouchdbAjax(ajaxOpts, wrapError(callback));
});
Expand Down

0 comments on commit f8ac9b3

Please sign in to comment.