aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/auth/forms.py
diff options
context:
space:
mode:
authorlora <lorochka85@gmail.com>2011-11-19 17:01:40 -0600
committerlora <lorochka85@gmail.com>2011-11-19 17:01:40 -0600
commit707001950a42c7adfd6657f227a2c2dbbd09afce (patch)
tree9a7215448098b8681b2b45fe636eb8af6c3ea8ba /mediagoblin/auth/forms.py
parent2d62e9efd210becd30982e65e06a6ef97029b391 (diff)
parentaea6d577cbf4d937427dea173f74fb17ad45bd75 (diff)
downloadmediagoblin-707001950a42c7adfd6657f227a2c2dbbd09afce.tar.lz
mediagoblin-707001950a42c7adfd6657f227a2c2dbbd09afce.tar.xz
mediagoblin-707001950a42c7adfd6657f227a2c2dbbd09afce.zip
Merge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin
Diffstat (limited to 'mediagoblin/auth/forms.py')
-rw-r--r--mediagoblin/auth/forms.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mediagoblin/auth/forms.py b/mediagoblin/auth/forms.py
index a932ad26..dcb6766c 100644
--- a/mediagoblin/auth/forms.py
+++ b/mediagoblin/auth/forms.py
@@ -59,9 +59,10 @@ class ForgotPassForm(wtforms.Form):
'Username or email',
[wtforms.validators.Required()])
- def validate_username(form,field):
- if not (re.match(r'^\w+$',field.data) or
- re.match(r'^.+@[^.].*\.[a-z]{2,10}$',field.data, re.IGNORECASE)):
+ def validate_username(form, field):
+ if not (re.match(r'^\w+$', field.data) or
+ re.match(r'^.+@[^.].*\.[a-z]{2,10}$', field.data,
+ re.IGNORECASE)):
raise wtforms.ValidationError(u'Incorrect input')
@@ -82,4 +83,3 @@ class ChangePassForm(wtforms.Form):
token = wtforms.HiddenField(
'',
[wtforms.validators.Required()])
-