iLanguage/iField — pull request #252 by cesine (2012-06-30 16:46:44+00:00)
Title: Switched to mongodb for restful user authentication

Unfortunatly getting couch and everyauth to work together required a lot of boilerplate, most of which was done when i switched to use mongoose-auth, developed by the creator of everyauth. Mongoose uses MongoDB as a back end. This has effectively increased our databases up to 3:

redis: permissions (maybe for lexicons in the future)
couch: corpus data which can be replicated
mongodb: user private data which cannot be replicated

What is working in this pull:
* we can use our welcome modal to hit the server restfully, and create new users, get the servers response back and treat it in cases of errors, show the user warnings etc.
* our router on nodejs is still working, we can get to a user' page by going to https://ifield.fieldlinguist.com/myusername etc

What is next:
* handling the callback from the server, if errors, warn the user
* test to see if the login restful api is also working, so far i just tested with the register route
* building up the proxy mechanisms/module on node and doing the sync if the register callback succeeds...(ie taking the user to their brand new userpage, a new corpus etc)