diff options
Diffstat (limited to 'coip/apps/auth/views.py')
-rw-r--r-- | coip/apps/auth/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coip/apps/auth/views.py b/coip/apps/auth/views.py index bb8ba17..7bdcad9 100644 --- a/coip/apps/auth/views.py +++ b/coip/apps/auth/views.py @@ -21,7 +21,7 @@ def meta(request,attr): def accounts_login_federated(request): if request.user.is_authenticated(): - profile,created = UserProfile.objects.get_or_create(identifier=request.user.username) + profile,created = UserProfile.objects.get_or_create(identifier=request.META.get("REMOTE_USER")) if created: profile.identifier = request.user.username request.user.delete() |