Commit 1a17042c authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

auth_providers context processro fix

pass auth provider instances in templates
parent ce9ed8c7
......@@ -50,9 +50,9 @@ def im_modules(request):
def auth_providers(request):
active_auth_providers = []
for module in IM_MODULES:
provider = AUTH_PROVIDERS.get(module)
provider = AUTH_PROVIDERS.get(module, None)
if provider:
return {'auth_providers': active_auth_providers,
'master_auth_provider': active_auth_providers[0]}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment