Skip to content

Commit b9b25da

Browse files
committed
Merged [2782] from esanchez@yaco.es: Retrieve the person from the legacy tables of non IESG logins. Fixes ietf-tools#576.
- Legacy-Id: 2797 Note: SVN reference [2782] has been migrated to Git commit f0772cf
1 parent 6a5e06a commit b9b25da

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

ietf/ietfauth/models.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,16 @@ def find_person(username):
4343
return person
4444
except IESGLogin.DoesNotExist, PersonOrOrgInfo.DoesNotExist:
4545
pass
46-
# TODO: try LegacyWgPassword next
46+
# try LegacyWgPassword next
47+
try:
48+
return LegacyWgPassword.objects.get(login_name=username).person
49+
except LegacyWgPassword.DoesNotExist, PersonOrOrgInfo.DoesNotExist:
50+
pass
51+
# try LegacyLiaisonUser next
52+
try:
53+
return LegacyLiaisonUser.objects.get(login_name=username).person
54+
except LegacyLiaisonUser.DoesNotExist, PersonOrOrgInfo.DoesNotExist:
55+
pass
4756
return None
4857

4958
class IetfUserProfile(models.Model):

0 commit comments

Comments
 (0)