Revision d60db93b djangobackends/shibauthBackend.py

b/djangobackends/shibauthBackend.py
10 10
        firstname = kwargs.get('firstname')
11 11
        lastname = kwargs.get('lastname')
12 12
        mail = kwargs.get('mail')
13
        authsource = kwargs.get('authsource')
14
        if authsource != 'shibboleth':
15
            return None
13 16
        try:
14 17
            user = self._auth_user(username, firstname, lastname, mail)
15 18
        except:
......
22 25

  
23 26
        try:
24 27
            user = User.objects.get(username__exact=username)
25
            user.email = mail
26
            user.first_name = firstname
27
            user.last_name = lastname
28
            user.save()
29 28
        # The user did not exist. Create one with no privileges
30 29
        except: 
31 30
            user = User.objects.create_user(username, mail, None)

Also available in: Unified diff