Permalink
Browse files

adduser: Fix new user signup regression

  • Loading branch information...
1 parent 7664d57 commit ea5bc1f0df02b6ddd3bd37b37ba966294a49dc7c @isaacs isaacs committed Jul 24, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/adduser.js
View
@@ -50,9 +50,9 @@ function adduser (username, password, email, cb) {
if (this.couchLogin) {
this.couchLogin.token = null
}
- this.username = username
- this.password = password
- this.auth = new Buffer(username + ':' + password).toString('base64')
+ this.username = null
+ this.password = null
+ this.auth = null
cb = done.call(this, cb, pre)
@@ -77,6 +77,8 @@ function adduser (username, password, email, cb) {
// use this info as auth
var b = new Buffer(username + ":" + password)
this.auth = b.toString("base64")
+ this.username = username
+ this.password = password
}
if (!error || !response || response.statusCode !== 409) {

0 comments on commit ea5bc1f

Please sign in to comment.