Skip to content

Commit f0772cf

Browse files
committed
Retrieve the person from the legacy tables of non IESG logins. Fixes ietf-tools#576
- Legacy-Id: 2782
1 parent de72df1 commit f0772cf

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)