Don't allow registration from our email domains

Fixes https://github.com/fedora-infra/noggin/issues/234

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2021-06-25 15:49:54 +02:00
parent cc7b01d3ea
commit 97afd10e23
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD

View file

@ -38,6 +38,13 @@ THEME = "{{ noggin_theme }}"
# Auto-gen avatar type to show if no avatar set
AVATAR_DEFAULT_TYPE = "retro"
# Don't allow regsitration with these email domains
MAIL_DOMAIN_BLOCKLIST = [
"fedoraproject.org",
"centosproject.org",
]
# Those file should be mounted from OpenShift secrets
FREEIPA_ADMIN_PASSWORD = from_file('/etc/noggin-secrets/ipa-admin')
FERNET_SECRET = from_file('/etc/noggin-secrets/fernet').encode('utf-8')