ForbesLindesay/connect-roles — pull request #19 by nathasm (2013-08-14 20:25:42+00:00)
Title:  Better error checking

Make sure that the user object exists before trying to inspect properties on user.

Prior to this change, the failureHandler would never be called because the Express error handler would capture the attempt to reference id on user, which in some cases user is undefined.