summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/meetingtools/apps/auth/views.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/meetingtools/apps/auth/views.py b/src/meetingtools/apps/auth/views.py
index d74377a..bbeb4be 100644
--- a/src/meetingtools/apps/auth/views.py
+++ b/src/meetingtools/apps/auth/views.py
@@ -57,15 +57,14 @@ def accounts_login_federated(request):
profile.save()
update = False
+ fn = meta1(request,'givenName')
+ ln = meta1(request,'sn')
cn = meta1(request,'cn')
if not cn:
cn = meta1(request,'displayName')
logging.warn(cn)
- if not cn:
- fn = meta1(request,'givenName')
- ln = meta1(request,'sn')
- if fn and ln:
- cn = "%s %s" % (fn,ln)
+ if not cn and fn and ln:
+ cn = "%s %s" % (fn,ln)
if not cn:
cn = profile.identifier