Mercurial > kallithea
changeset 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 | a665d8cdd351 |
children | 81a81bac92da |
files | rhodecode/model/validators.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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