Mercurial > hg > ltpdarepo
changeset 198:234d57f3fd1d
Allow for leading digits in usernames.
author | Daniele Nicolodi <daniele@grinta.net> |
---|---|
date | Fri, 11 Nov 2011 12:36:53 +0100 |
parents | 891229adcf66 |
children | 73fc9ec0ccce |
files | src/ltpdarepo/user.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ltpdarepo/user.py Fri Nov 11 12:28:36 2011 +0100 +++ b/src/ltpdarepo/user.py Fri Nov 11 12:36:53 2011 +0100 @@ -23,7 +23,7 @@ validators.Length(max=16, message=u'Usernames cannot be ' 'longer than 16 characters'), - validators.Regexp(r'^[a-zA-Z][0-9a-zA-Z\-\._]+$', + validators.Regexp(r'^[0-9a-zA-Z\-\._]+$', message=u'Invalid identifier.')]) name = TextField("Given name") surname = TextField("Family name")