This is a user account model module for applications looking to
leverage couchdb _users
database to manage application users as
well as create a database per user and properly set the security
properties giving the user account sole access to their datastore.
- NodeJS http://nodejs.org
- CouchDb http://couchdb.apache.org
npm install couch-user-account
var account = require('couch-user-account')({
protocol: 'http',
host: 'localhost:5984',
auth: 'foo:bar'
})
// register account
account.register({
name: "foo",
password: "beep",
email: "foo@beep.com"
}, function(err, res) {
console.log(res);
})
TODO
- register
- login
- remove
- setup
- findByEmail
- changePassword
- createCode
npm test
- create an issue on github