Commit 5b6ad991 authored by Enrico Zini's avatar Enrico Zini
Browse files

Allow to lookup people by fingerprint

parent 88d80fef
......@@ -155,6 +155,8 @@ class Person(models.Model):
try:
if "@" in key:
return cls.objects.get(email=key)
elif len(key) > 32:
return cls.objects.get(fpr=key)
else:
return cls.objects.get(uid=key)
except cls.DoesNotExist:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment