# HG changeset patch # User Marcin Kuzminski # Date 2011-01-26 17:38:08 # Node ID 029e69f0d21dae148becc6638a857df44dc305b2 # Parent fff21c9b075cc4c2daed8df1e3071eb429a1c683 fixed #102 allowed '.' character in username diff --git a/rhodecode/model/forms.py b/rhodecode/model/forms.py --- a/rhodecode/model/forms.py +++ b/rhodecode/model/forms.py @@ -78,10 +78,10 @@ def ValidUsername(edit, old_data): 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'), value, state)