twilson63/express-couchUser — pull request #2 by warrensplayer (2014-02-19 13:47:56+00:00)
Title: Adding error handling for user lookup during forgot password request

**Main Issue**
Error was happening when a user tried to perform the forgot password functionality and entered an email that did not exist in the database.

**Solution**
Added check around the result from the user lookup to return an error message if no user was found.

_Additional_
Added an api call to look up a user based on the users reset code set during the forgot password request. This query leverages the "code" view in the CouchDB design document that was already present.