From 15404f837280addeb0ea46b23b9ed020c6ccefdc Mon Sep 17 00:00:00 2001 From: Ben C Date: Tue, 9 Nov 2021 21:15:13 -0500 Subject: [PATCH] Removed mail from ldap_auth.py sync --- Users/ldap_auth.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/Users/ldap_auth.py b/Users/ldap_auth.py index 5931c48..107aaeb 100644 --- a/Users/ldap_auth.py +++ b/Users/ldap_auth.py @@ -86,7 +86,6 @@ class LDAPAuthentication(BaseBackend): django_user.username = ldap_user["msDS-PrincipalName"] django_user.first_name = self.ldap_empty(ldap_user.givenName) django_user.last_name = self.ldap_empty(ldap_user.sn) - django_user.email = self.ldap_empty(ldap_user.mail) django_user.session = self.get_session_from_ldap(ldap_user) django_user.save() return django_user @@ -107,7 +106,6 @@ class LDAPAuthentication(BaseBackend): new_user = create_method(id=UUID(guid), username=ldap_user["msDS-PrincipalName"], first_name=self.ldap_empty(ldap_user.givenName), last_name=self.ldap_empty(ldap_user.sn), - email=self.ldap_empty(ldap_user.mail), session=self.get_session_from_ldap(ldap_user)) new_user.set_unusable_password() new_user.save() -- knotmirror 0.0.1