aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/auth/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/auth/forms.py')
-rw-r--r--mediagoblin/auth/forms.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/mediagoblin/auth/forms.py b/mediagoblin/auth/forms.py
index 86d82a61..33403544 100644
--- a/mediagoblin/auth/forms.py
+++ b/mediagoblin/auth/forms.py
@@ -35,3 +35,13 @@ class RegistrationForm(wtforms.Form):
'Email address',
[wtforms.validators.Required(),
wtforms.validators.Email()])
+
+
+class LoginForm(wtforms.Form):
+ username = wtforms.TextField(
+ 'Username',
+ [wtforms.validators.Required(),
+ wtforms.validators.Regexp(r'^\w+$')])
+ password = wtforms.PasswordField(
+ 'Password',
+ [wtforms.validators.Required()])