Parent Directory | Revision Log
allow to use email on log on transifex
1 | |
2 | from django_auth_ldap.backend import LDAPBackend,_LDAPUser |
3 | |
4 | class ForceUidLDAPBackend(LDAPBackend): |
5 | def ldap_to_django_username(self, username): |
6 | # force uid if someone give a email |
7 | return _LDAPUser(self, username=username).attrs['uid'][0] |
8 | |
9 |
ViewVC Help | |
Powered by ViewVC 1.1.30 |