Account Couch Logger
Log register and login requests to an account module
Installation
npm install -S account-couch-logger
Usage
The account couch module exports register
and login
functions
To register a new account, pass an email
, password
and a cradle db
connection
var config = var logger = // instatiate an couchdb-based account backend objectvar AccountCouch = var db = configvar data = email: 'foo@example.com' password: 'barPassword' db: db var accountCouch = dbvar AccountLogger = // instatitate the account logger object, passing the couchdb-based account backend and the winston logger object as paramteres to the constructorvar account = accountCouch logger account
Test
To run the test suite execute
# install development deps npm install# run tests npm test