1602/compound-passport — pull request #12 by therealdpk (2013-05-06 21:51:03+00:00)
Title: use local findOrCreate instead of User.findOrCreate when creating accounts

From what I can tell the strategy modules, such as ````google.js````, expect to be calling ````lib/user.js````'s ````findOrCreate```` function, but instead they're calling the underlying model ````findOrCreate```` (from jugglingdb). This resulted in essentially empty rows being added to the database.

I'm not sure if this is the best solution, but to work around this I renamed ````findOrCreate```` in ````lib/user.js```` (and all references in strategies/*). Now the database (mongodb in this case) gets the correct information.