Allow underscores in SMS senders

This commit is contained in:
Chris Hill-Scott
2020-04-02 15:57:46 +01:00
parent c400695f68
commit 1fe3f1871e
3 changed files with 14 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ from app.main.validators import (
Blacklist,
CsvFileValidator,
DoesNotStartWithDoubleZero,
LettersNumbersAndFullStopsOnly,
LettersNumbersFullStopsAndUnderscoresOnly,
MustContainAlphanumericCharacters,
NoCommasInPlaceHolders,
NoEmbeddedImagesInSVG,
@@ -1086,7 +1086,7 @@ class ServiceSmsSenderForm(StripWhitespaceForm):
DataRequired(message="Cannot be empty"),
Length(max=11, message="Enter 11 characters or fewer"),
Length(min=4, message="Enter 4 characters or more"),
LettersNumbersAndFullStopsOnly(),
LettersNumbersFullStopsAndUnderscoresOnly(),
DoesNotStartWithDoubleZero(),
]
)