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:
parent
666b982c50
commit
a12aa1f3d4
@ -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: - : .')
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user