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

Fixed #28207 -- Fixed contrib.auth.authenticate() if multiple auth backends don't accept a request. #8505

Merged
merged 1 commit into from May 15, 2017

Conversation

sztamas
Copy link

@sztamas sztamas commented May 14, 2017

The easiest fix would be to just copy the contents of credentials at the top of the loop, but I think it is worthwhile breaking out a helper function.

IMHO the loop's body is complicated enough to warrant a new function, aligns the Single Responsibility Principle and avoids introducing an arguably ugly dictionary copy.

@timgraham timgraham changed the title Ticket 28207 Fixed #28207 -- Fixed contrib.auth.authenticate() if multiple auth backends don't accept a request. May 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants