ldap: Fix inaccuracy in django_to_ldap_username comment.

This commit is contained in:
Mateusz Mandera 2020-09-13 18:39:00 +02:00
parent 463929f349
commit cf5d544c82
1 changed files with 1 additions and 1 deletions

View File

@ -449,7 +449,7 @@ class ZulipLDAPAuthBackendBase(ZulipAuthMixin, LDAPBackend):
def django_to_ldap_username(self, username: str) -> str:
"""
Translates django username (user_profile.email or whatever the user typed in the login
Translates django username (user_profile.delivery_email or whatever the user typed in the login
field when authenticating via the ldap backend) into ldap username.
Guarantees that the username it returns actually has an entry in the ldap directory.
Raises ZulipLDAPExceptionNoMatchingLDAPUser if that's not possible.