• Raphaël Hertzog's avatar
    utils: improve verify_signature() to return better user identities · 6e6ef842
    Raphaël Hertzog authored
    Up to now it always returned the first UID on the key. Unfortunately,
    that UID was sometimes an UID without email (or with an invalid email)
    which in turn generated invalid emails in the database. Also the primary
    UID is not often the Debian UID so we returned personal emails when we
    could have found the proper Debian identity.
    
    So now, we do a first pass looking for an email that matches the domain
    name of the tracker installation. If it's not succesfull, we return the
    first valid non-revoked UID with a valid email.
    6e6ef842
Name
Last commit
Last update
bin Loading commit data...
data Loading commit data...
debian Loading commit data...
distro_tracker Loading commit data...
django_email_accounts Loading commit data...
docs Loading commit data...
functional_tests Loading commit data...
.coveragerc Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
COPYRIGHT Loading commit data...
LICENSE Loading commit data...
MANIFEST.in Loading commit data...
README.md Loading commit data...
TODO Loading commit data...
manage.py Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...