Add email domains to whitelist for user registration.

This commit is contained in:
Rebecca Law
2016-09-20 11:02:53 +01:00
parent 945f783891
commit 4f20dceb9f
2 changed files with 8 additions and 2 deletions

View File

@@ -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):

View File

@@ -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():