Details
Description
instructions:
//create a server admin in futon
{name:"paul",password:"password"}//delete _users database
$.couch.signup(
,"1")
//set _users security members names = ["admin"] via futon
//logout via futon
//login via futon as 'admin'
$.couch.signup(
,"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"]
------------------------------------------------------------------------------------------------------------------------------------
_users validation function is not even called in this situation.
i was told that the below link is related to the problem
https://github.com/apache/couchdb/blob/master/src/couchdb/couch_users_db.erl#L40