Changeset - fc26083c7436
[Not reviewed]
beta
0 1 0
Mads Kiilerich - 13 years ago 2013-01-21 19:47:11
madski@unity3d.com
Grafted from: b8a22804f719
make email validation regexp match the error description - single letter is ok
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/validators.py
Show inline comments
 
@@ -103,7 +103,7 @@ def ValidUsername(edit=False, old_data={
 
                    msg = M(self, 'username_exists', state, username=value)
 
                    raise formencode.Invalid(msg, 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:
 
                msg = M(self, 'invalid_username', state)
 
                raise formencode.Invalid(msg, value, state)
 
    return _validator
0 comments (0 inline, 0 general)