diff --git a/server/src/uds/REST/methods/authenticators.py b/server/src/uds/REST/methods/authenticators.py index 9c46a3aba..9f73b9853 100644 --- a/server/src/uds/REST/methods/authenticators.py +++ b/server/src/uds/REST/methods/authenticators.py @@ -228,7 +228,7 @@ class Authenticators(ModelHandler): fields['mfa_id'] = None 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, ":" and "-"') )