diff options
author | Marian Sigler <m@qjym.de> | 2012-10-15 12:51:29 +0200 |
---|---|---|
committer | Marian Sigler <m@qjym.de> | 2012-10-15 12:51:29 +0200 |
commit | 0fd3d17a2fb1b36ca838889e74883d69ecc280f0 (patch) | |
tree | b4beff337f6d7dd6a17b45bb4550b45034118e3f /utils.py | |
parent | 5bdb657f3aca7ee5ad065777d0edb106c7cb8827 (diff) | |
download | web-0fd3d17a2fb1b36ca838889e74883d69ecc280f0.tar.gz web-0fd3d17a2fb1b36ca838889e74883d69ecc280f0.tar.bz2 web-0fd3d17a2fb1b36ca838889e74883d69ecc280f0.zip |
fix username regex
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -20,7 +20,7 @@ from wtforms.validators import Regexp -_username_re = re.compile(r'^[a-zA-Z][a-zA-Z0-9-]{1,15}') +_username_re = re.compile(r'^[a-zA-Z][a-zA-Z0-9-]{1,15}$') _username_exclude_re = re.compile(r'^(admin|root)') # using http://flask.pocoo.org/docs/patterns/viewdecorators/ |