mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-25 08:44:23 -04:00
Updated the contact us link for non gov.uk domains trying to register.
This commit is contained in:
committed by
Chris Hill-Scott
parent
b8774a8ce9
commit
636facb71c
@@ -31,8 +31,7 @@ class ValidEmailDomainRegex(object):
|
|||||||
message = (
|
message = (
|
||||||
'Enter a central government email address.'
|
'Enter a central government email address.'
|
||||||
' If you think you should have access'
|
' If you think you should have access'
|
||||||
' <a href="{}">contact us</a>').format(
|
' <a href="{}">contact us</a>').format(url_for('main.feedback'))
|
||||||
"https://docs.google.com/forms/d/1AL8U-xJX_HAFEiQiJszGQw0PcEaEUnYATSntEghNDGo/viewform")
|
|
||||||
valid_domains = current_app.config.get('EMAIL_DOMAIN_REGEXES', [])
|
valid_domains = current_app.config.get('EMAIL_DOMAIN_REGEXES', [])
|
||||||
email_regex = "[^\@^\s]+@([^@^\\.^\\s]+\.)*({})$".format("|".join(valid_domains))
|
email_regex = "[^\@^\s]+@([^@^\\.^\\s]+\.)*({})$".format("|".join(valid_domains))
|
||||||
if not re.match(email_regex, field.data.lower()):
|
if not re.match(email_regex, field.data.lower()):
|
||||||
|
|||||||
Reference in New Issue
Block a user