@@ -75,16 +75,16 @@ def ValidUsername(edit, old_data):
if UserModel().get_by_username(value, cache=False,
case_insensitive=True):
raise formencode.Invalid(_('This username already exists') ,
value, state)
if re.match(r'^[a-zA-Z0-9]{1}[a-zA-Z0-9\-\_]+$', value) is None:
if re.match(r'^[a-zA-Z0-9]{1}[a-zA-Z0-9\-\_\.]+$', value) is None:
raise formencode.Invalid(_('Username may only contain '
'alphanumeric characters underscores '
'or dashes and must begin with '
'alphanumeric characters underscores, '
'periods or dashes and must begin with '
'alphanumeric character'),
return _ValidUsername
Status change: