Commit fe29a82a authored by Dan Pascu's avatar Dan Pascu

Fixed username length limits in regular expression

parent e17f4671
...@@ -263,7 +263,7 @@ class AddAccountDialog(base_class, ui_class): ...@@ -263,7 +263,7 @@ class AddAccountDialog(base_class, ui_class):
self.email_address_editor.statusChanged.connect(self._SH_ValidityStatusChanged) self.email_address_editor.statusChanged.connect(self._SH_ValidityStatusChanged)
self.display_name_editor.regexp = re.compile('^.*$') self.display_name_editor.regexp = re.compile('^.*$')
self.name_editor.regexp = re.compile('^.+$') self.name_editor.regexp = re.compile('^.+$')
self.username_editor.regexp = re.compile('^\w(?<=[^0_])[\w.-]{1,65}(?<=[^_.-])$', re.IGNORECASE) # in order to enable unicode characters add re.UNICODE to flags self.username_editor.regexp = re.compile('^\w(?<=[^0_])[\w.-]{3,30}(?<=[^_.-])$', re.IGNORECASE) # in order to enable unicode characters add re.UNICODE to flags
self.sip_address_editor.regexp = re.compile('^[^@\s]+@[^@\s]+$') self.sip_address_editor.regexp = re.compile('^[^@\s]+@[^@\s]+$')
self.password_editor.regexp = re.compile('^.*$') self.password_editor.regexp = re.compile('^.*$')
self.new_password_editor.regexp = re.compile('^.{8,}$') self.new_password_editor.regexp = re.compile('^.{8,}$')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment