diff options
author | isaacs <i@izs.me> | 2014-03-19 09:25:40 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2014-03-25 17:42:22 -0700 |
commit | bd547d65983c190eb69ca44d633ea31aca2b7c98 (patch) | |
tree | 01ff3b4e40cb9fc3ed5a42abc4d44cb65d5c7dec /deps/npm/node_modules/npm-registry-client/lib/adduser.js | |
parent | 7989f42f866699b726f596add387fb19fa39bc55 (diff) | |
download | android-node-v8-bd547d65983c190eb69ca44d633ea31aca2b7c98.tar.gz android-node-v8-bd547d65983c190eb69ca44d633ea31aca2b7c98.tar.bz2 android-node-v8-bd547d65983c190eb69ca44d633ea31aca2b7c98.zip |
npm: upgrade to 1.4.6
* Documentation upgrades
* Fix glob bug which prevents proper README publishing
* node-gyp upgrade to 0.13
* Documentation updates
* Add --save-exact to save an exact dep (instead of a range)
* alias 't' to 'test'
Diffstat (limited to 'deps/npm/node_modules/npm-registry-client/lib/adduser.js')
-rw-r--r-- | deps/npm/node_modules/npm-registry-client/lib/adduser.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/deps/npm/node_modules/npm-registry-client/lib/adduser.js b/deps/npm/node_modules/npm-registry-client/lib/adduser.js index aebf71d670..a4581a6c81 100644 --- a/deps/npm/node_modules/npm-registry-client/lib/adduser.js +++ b/deps/npm/node_modules/npm-registry-client/lib/adduser.js @@ -24,8 +24,7 @@ function adduser (username, password, email, cb) { var salt = crypto.randomBytes(30).toString('hex') , userobj = { name : username - , salt : salt - , password_sha : sha(password + salt) + , password : password , email : email , _id : 'org.couchdb.user:'+username , type : "user" @@ -51,7 +50,7 @@ function adduser (username, password, email, cb) { cb = done.call(this, cb, pre) var logObj = Object.keys(userobj).map(function (k) { - if (k === 'salt' || k === 'password_sha') return [k, 'XXXXX'] + if (k === 'password') return [k, 'XXXXX'] return [k, userobj[k]] }).reduce(function (s, kv) { s[kv[0]] = kv[1] |