mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-06 03:13:42 -05:00
Add email domains to whitelist for user registration.
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user