aboutsummaryrefslogtreecommitdiff
path: root/rhodecode/model/forms.py
diff options
context:
space:
mode:
authorMarcin Kuzminski <marcin@python-works.com>2011-01-26 17:38:08 +0100
committerMarcin Kuzminski <marcin@python-works.com>2011-01-26 17:38:08 +0100
commit9355e5bc39ad063003efeea497fd91b46495fa93 (patch)
treee4eede00d88a8a4bd062e5a3b82eb60f366092ad /rhodecode/model/forms.py
parenta15900be34ac513c9e143337f79a0733ec13dfcc (diff)
fixed #102 allowed '.' character in username
--HG-- branch : beta
Diffstat (limited to 'rhodecode/model/forms.py')
-rw-r--r--rhodecode/model/forms.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rhodecode/model/forms.py b/rhodecode/model/forms.py
index 27c02096..4c8d2a5c 100644
--- 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)