mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-05 22:10:44 -04:00
Stop letting people enter empty SMS senders
This shouldn’t be deployed until we’ve migrated the database to default to GOVUK.
This commit is contained in:
@@ -492,6 +492,7 @@ class ServiceSmsSender(Form):
|
||||
sms_sender = StringField(
|
||||
'Text message sender',
|
||||
validators=[
|
||||
DataRequired(message="Can’t be empty"),
|
||||
Length(max=11, message="Enter 11 characters or fewer")
|
||||
]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user