Mercurial > kallithea
diff rhodecode/model/validators.py @ 3186:fc26083c7436 beta
make email validation regexp match the error description - single letter is ok
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Mon, 21 Jan 2013 19:47:11 +0100 |
parents | 68f9c216377d |
children | 6c28533d122c |
line wrap: on
line diff
--- a/rhodecode/model/validators.py Mon Jan 21 23:14:43 2013 +0100 +++ b/rhodecode/model/validators.py Mon Jan 21 19:47:11 2013 +0100 @@ -103,7 +103,7 @@ 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