Commit 7b5b4daf authored by Zenon Mousmoulas's avatar Zenon Mousmoulas
Browse files

Let mail login attribute take its' value from either of both common

Shibboleth environment variable names.
parent b4a3ad4f
......@@ -962,7 +962,7 @@ def user_login(request):
error_username = True
firstname = request.META['HTTP_SHIB_INETORGPERSON_GIVENNAME']
lastname = request.META['HTTP_SHIB_PERSON_SURNAME']
mail = request.META['HTTP_SHIB_INETORGPERSON_MAIL']
mail = request.META['mail'] or request.META['HTTP_SHIB_INETORGPERSON_MAIL']
#organization = request.META['HTTP_SHIB_HOMEORGANIZATION']
entitlement = request.META['HTTP_SHIB_EP_ENTITLEMENT']
if settings.SHIB_AUTH_ENTITLEMENT in entitlement.split(";"):
......
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