changeset 960:029e69f0d21d beta

fixed #102 allowed '.' character in username
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 26 Jan 2011 17:38:08 +0100
parents fff21c9b075c
children 840ca7492dbe
files rhodecode/model/forms.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/model/forms.py	Wed Jan 26 17:34:37 2011 +0100
+++ b/rhodecode/model/forms.py	Wed Jan 26 17:38:08 2011 +0100
@@ -78,10 +78,10 @@
                                              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)