mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
Merge pull request #162 from alphagov/allow_test_number
Allow test number
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from flask import current_app
|
||||
|
||||
|
||||
class BrowsableItem(object):
|
||||
@@ -32,6 +33,8 @@ class InvalidPhoneError(Exception):
|
||||
|
||||
|
||||
def validate_phone_number(number):
|
||||
if number == current_app.config['TWILIO_TEST_NUMBER']:
|
||||
return number
|
||||
|
||||
sanitised_number = number.replace('(', '')
|
||||
sanitised_number = sanitised_number.replace(')', '')
|
||||
|
||||
Reference in New Issue
Block a user