contacts: add a settings for send_registration_mail (#20665)

This commit is contained in:
Thomas NOËL 2017-12-13 17:15:49 +01:00
parent 689010e524
commit 2b4eb7cd54
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ class ContactAdd(FormView):
msg[field_key] = form[field_key].value()
msg['password'] = str(random.SystemRandom().random())
msg['send_registration_email'] = True
msg['send_registration_email'] = getattr(settings, 'CONTACT_SEND_REGISTRATION_EMAIL', True)
authentic_site = settings.KNOWN_SERVICES.get('authentic').values()[0]
authentic_url = authentic_site.get('url')