contacts: add a settings for send_registration_mail (#20665)
This commit is contained in:
parent
689010e524
commit
2b4eb7cd54
|
@ -131,7 +131,7 @@ class ContactAdd(FormView):
|
||||||
msg[field_key] = form[field_key].value()
|
msg[field_key] = form[field_key].value()
|
||||||
|
|
||||||
msg['password'] = str(random.SystemRandom().random())
|
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_site = settings.KNOWN_SERVICES.get('authentic').values()[0]
|
||||||
authentic_url = authentic_site.get('url')
|
authentic_url = authentic_site.get('url')
|
||||||
|
|
Loading…
Reference in New Issue