mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -04:00
Can remove sms sender.
This commit is contained in:
@@ -327,5 +327,5 @@ class ServiceSmsSender(Form):
|
||||
|
||||
def validate_sms_sender(form, field):
|
||||
import re
|
||||
if not re.match('^[a-zA-Z0-9\s]+$', field.data):
|
||||
if field.data and not re.match('^[a-zA-Z0-9\s]+$', field.data):
|
||||
raise ValidationError('Sms text message sender can only contain alpha-numeric characters')
|
||||
|
||||
Reference in New Issue
Block a user