couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [06/50] jquery-couch commit: updated refs/heads/import-master to 66dbcbf
Date Tue, 01 Apr 2014 08:52:11 GMT
normalize userCtx name and roles, also, no log in via a conflict doc

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@900275 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/commit/dd34212a
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/tree/dd34212a
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/diff/dd34212a

Branch: refs/heads/import-master
Commit: dd34212a64b420fa95033bb1cf1078d342cfdd9b
Parents: 59738f6
Author: John Christopher Anderson <jchris@apache.org>
Authored: Mon Jan 18 03:45:54 2010 +0000
Committer: Alexander Shorin <kxepal@gmail.com>
Committed: Mon Jan 18 03:45:54 2010 +0000

----------------------------------------------------------------------
 jquery.couch.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/blob/dd34212a/jquery.couch.js
----------------------------------------------------------------------
diff --git a/jquery.couch.js b/jquery.couch.js
index 90fbb59..986c519 100644
--- a/jquery.couch.js
+++ b/jquery.couch.js
@@ -28,7 +28,7 @@
       return;
     }
     var user_prefix = "org.couchdb.user:";
-    user_doc._id = user_doc._id || user_prefix + user_doc.username;
+    user_doc._id = user_doc._id || user_prefix + user_doc.name;
     if (new_password) {
       // handle the password crypto
       user_doc.salt = $.couch.newUUID();
@@ -102,7 +102,7 @@
     userDb : function(callback) {
       $.couch.session({
         success : function(resp) {
-          var userDb = $.couch.db(resp.info.user_db);
+          var userDb = $.couch.db(resp.info.authentication_db);
           callback(userDb);
         }
       });
@@ -121,7 +121,7 @@
       options = options || {};
       $.ajax({
         type: "POST", url: "/_session", dataType: "json",
-        data: {username: options.username, password: options.password},
+        data: {name: options.name, password: options.password},
         complete: function(req) {
           var resp = $.httpData(req, "json");
           if (req.status == 200) {


Mime
View raw message