Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error checking #19

Closed
wants to merge 1 commit into from
Closed

Conversation

nathasm
Copy link

@nathasm nathasm commented Aug 14, 2013

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.

Make sure that the user object exists before trying to inspect properties on user.
@ForbesLindesay
Copy link
Owner

It should be possible to have some things that an un-authenticated user can do. e.g. user.can('log in')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants