Created
March 27, 2012 21:03
-
-
Save boxxxie/2220217 to your computer and use it in GitHub Desktop.
couchdb user creation problems on 1.2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//create a server admin in futon {name:"paul",password:"password"} via futon | |
//delete _users database | |
$.couch.signup({name:"admin"},"1") | |
//set _users security members names = ["admin"] via futon | |
//logout via futon | |
//login via futon as 'admin' | |
$.couch.signup({name:"user1"},"password",{success:function(){console.log(arguments)},error:function(){console.log(arguments)}}) | |
//console output: | |
//PUT http://localhost:5984/_users/org.couchdb.user%3Auser1 404 (Object Not Found) | |
//XHR finished loading: "http://localhost:5984/_users/org.couchdb.user%3Auser1". | |
[404, "not_found", "missing"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment