diff options
Diffstat (limited to 'modules/transifex/files/custom_backend.py')
-rw-r--r-- | modules/transifex/files/custom_backend.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/modules/transifex/files/custom_backend.py b/modules/transifex/files/custom_backend.py deleted file mode 100644 index 828744fb..00000000 --- a/modules/transifex/files/custom_backend.py +++ /dev/null @@ -1,9 +0,0 @@ - -from django_auth_ldap.backend import LDAPBackend,_LDAPUser - -class ForceUidLDAPBackend(LDAPBackend): - def ldap_to_django_username(self, username): - # force uid if someone give a email - return _LDAPUser(self, username=username).attrs['uid'][0] - - |