feature/Enhance function api_usernamre in order to handle Azure as Identity Provider

This commit is contained in:
Marko Milić 2021-11-16 08:49:02 +01:00
parent a66192c8a6
commit 2efa5913ac

View File

@ -59,6 +59,8 @@ def api_username(request):
nametodisplay = email
elif "yahoo" in provider:
nametodisplay = email
elif "microsoft" in provider:
nametodisplay = email
else:
nametodisplay = username
apicaches=cache.set(cache_key, {'API_USERNAME': nametodisplay})