We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de72df1 commit f0772cfCopy full SHA for f0772cf
ietf/ietfauth/models.py
@@ -43,7 +43,16 @@ def find_person(username):
43
return person
44
except IESGLogin.DoesNotExist, PersonOrOrgInfo.DoesNotExist:
45
pass
46
- # TODO: try LegacyWgPassword next
+ # 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
53
+ return LegacyLiaisonUser.objects.get(login_name=username).person
54
+ except LegacyLiaisonUser.DoesNotExist, PersonOrOrgInfo.DoesNotExist:
55
56
return None
57
58
class IetfUserProfile(models.Model):
0 commit comments