commit d7b478b1b71ba4b5b3fd7f9da0e7d1c8d38e3acd parent fae6efe069d0b34bf5ea1640071362d06706cb0e Author: Christian Grothoff <christian@grothoff.org> Date: Thu, 8 May 2025 19:17:25 +0200 fix field names of restrictions Diffstat:
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/playbooks/setup.yml b/playbooks/setup.yml @@ -21,5 +21,5 @@ name: challenger postexchange: true when: DEPLOY_CHALLENGER | bool - - role: auditor + # - role: auditor - role: monitoring diff --git a/roles/challenger/templates/etc/challenger/challenger-email.conf.j2 b/roles/challenger/templates/etc/challenger/challenger-email.conf.j2 @@ -35,7 +35,7 @@ BASE_URL = https://email.challenger.{{ DOMAIN_NAME }}/ ADDRESS_TYPE = email # What addresses are allowed. -ADDRESS_RESTRICTIONS = {"email":{"hint":"valid e-mail address required","regex":"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$"}} +ADDRESS_RESTRICTIONS = {"CONTACT_EMAIL":{"hint":"valid e-mail address required","regex":"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$"}} [challengerdb-postgres] #The connection string the plugin has to use for connecting to the database diff --git a/roles/challenger/templates/etc/challenger/challenger-postal.conf.j2 b/roles/challenger/templates/etc/challenger/challenger-postal.conf.j2 @@ -35,7 +35,7 @@ MESSAGE_TEMPLATE_FILE = /etc/challenger/postal-message-template.txt ADDRESS_TYPE = postal-ch # What addresses are allowed. -ADDRESS_RESTRICTIONS = {"zip":{"hint":"numeric zip code required","regex":"^[0-9]+$"}, "country":{"hint":"{{ EXCHANGE_AML_PROGRAM_TOPS_POSTAL_COUNTRY_HINT }}","regex":"^{{ EXCHANGE_AML_PROGRAM_TOPS_POSTAL_COUNTRY_REGEX }}$"}} +ADDRESS_RESTRICTIONS = {"COUNTRY_CODE":{"hint":"{{ EXCHANGE_AML_PROGRAM_TOPS_POSTAL_COUNTRY_HINT }}","regex":"^{{ EXCHANGE_AML_PROGRAM_TOPS_POSTAL_COUNTRY_REGEX }}$"}} [challengerdb-postgres] #The connection string the plugin has to use for connecting to the database diff --git a/roles/challenger/templates/etc/challenger/challenger-sms.conf.j2 b/roles/challenger/templates/etc/challenger/challenger-sms.conf.j2 @@ -29,7 +29,7 @@ BASE_URL = https://sms.challenger.{{ DOMAIN_NAME }}/ ADDRESS_TYPE = phone # Limit acceptable phone numbers. -ADDRESS_RESTRICTIONS = {"phone":{"hint":"{{ EXCHANGE_AML_PROGRAM_TOPS_SMS_HINT }}","regex":"{{ EXCHANGE_AML_PROGRAM_TOPS_SMS_REGEX }}"}} +ADDRESS_RESTRICTIONS = {"CONTACT_PHONE":{"hint":"{{ EXCHANGE_AML_PROGRAM_TOPS_SMS_HINT }}","regex":"{{ EXCHANGE_AML_PROGRAM_TOPS_SMS_REGEX }}"}} [challengerdb-postgres]