From 4f20dceb9fb19e1fbc220493a6a6be51c6cf77fb Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Tue, 20 Sep 2016 11:02:53 +0100 Subject: [PATCH] Add email domains to whitelist for user registration. --- config.py | 5 ++++- tests/app/main/test_validators.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index 35019abf9..d0abe0475 100644 --- a/config.py +++ b/config.py @@ -58,7 +58,10 @@ class Config(object): "salesforce\.com", "bitzesty\.com", "dclgdatamart\.co\.uk", - "valtech\.co\.uk"] + "valtech\.co\.uk", + "gofreerange\.com", + "cgi\.com", + "unboxed\.com"] class Development(Config): diff --git a/tests/app/main/test_validators.py b/tests/app/main/test_validators.py index 29ae66132..1d2339e1b 100644 --- a/tests/app/main/test_validators.py +++ b/tests/app/main/test_validators.py @@ -76,7 +76,10 @@ def _gen_mock_field(x): 'test@police.uk', 'test@gov.police.uk', 'test@GOV.PoliCe.uk', - 'test@valtech.co.uk' + 'test@valtech.co.uk', + 'test@gofreerange.com', + 'test@cgi.com', + 'test@unboxed.com' ]) def test_valid_list_of_white_list_email_domains(app_, email): with app_.test_request_context():