You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently to create a new user using the CouchDBUser module, it simply puts a new document in the _users database using a standard sync request (this.load()).
It won't work if CouchDB is configured to expect a valid user and there is no configuration option to pass admin parameters (or any valid user) to CouchDBUser.
My workaround to make it work is to manually rewrite the create method of CouchDBUser and pass it the admin credentials:
this.create = function create() {
var promise = new Promise,
user = this;
Currently to create a new user using the CouchDBUser module, it simply puts a new document in the _users database using a standard sync request (this.load()).
It won't work if CouchDB is configured to expect a valid user and there is no configuration option to pass admin parameters (or any valid user) to CouchDBUser.
My workaround to make it work is to manually rewrite the create method of CouchDBUser and pass it the admin credentials:
this.create = function create() {
var promise = new Promise,
user = this;
The text was updated successfully, but these errors were encountered: