bnoguchi/everyauth — pull request #239 by evdb (2012-04-12 13:36:55+00:00)
Title: Provide 'req' to  findUserById function (if needed)

I'm working on an app that uses a different database depending on the domain name used to access it - a multi-tenant app if you will.

To use everyauth I need to be able to choose the database to look up the user in based on the domain name, and so need access to the request.

The attached change allows for a three argument form of `findUserById` which is handles this. The existing two argument form is also supported so this change is backwards compatible.