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

Respond with 401 for request non-HTML requests #7

Merged
merged 1 commit into from
Jan 10, 2013

Conversation

wkrsz
Copy link
Contributor

@wkrsz wkrsz commented Dec 21, 2012

@Houdini can you take at the solution? Is it missing something important?

Responding with empty body and just 401 status is pretty lame. It's a catch-all so neither plain text "Failed second factor auth" nor JSON "{message: "Failed second factor auth"} seems appropriate. I think that's ok because easily override handle_failed_second in your ApplicationController to fit your needs.

Houdini added a commit that referenced this pull request Jan 10, 2013
Respond with 401 for request non-HTML requests
@Houdini Houdini merged commit 5bcb23e into Houdini:master Jan 10, 2013
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.

2 participants