1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-03-12 04:58:34 +03:00

fixed auth label re

This commit is contained in:
Adolfo Gómez García 2023-03-13 18:05:18 +01:00
parent 666b982c50
commit a12aa1f3d4
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23

View File

@ -228,7 +228,7 @@ class Authenticators(ModelHandler):
fields['small_name'] = fields['small_name'].strip().replace(' ', '-')
# And ensure small_name chars are valid [ a-zA-Z0-9:-.]+
if fields['small_name'] and not re.match(r'^[a-zA-Z0-9:-.]+$', fields['small_name']):
if fields['small_name'] and not re.match(r'^[a-zA-Z0-9:.-]+$', fields['small_name']):
raise self.invalidRequestException(
_('Label must contain only letters, numbers, or symbols: - : .')
)