From ee35835b75119e57dd23f13fba95c02e50125a44 Mon Sep 17 00:00:00 2001 From: Marian Sigler Date: Fri, 28 Sep 2012 03:21:13 +0200 Subject: Add script to create accounts (for usernames that are in the blacklist) --- forms.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'forms.py') diff --git a/forms.py b/forms.py index 063412b..4d57d63 100644 --- a/forms.py +++ b/forms.py @@ -24,13 +24,13 @@ class RegisterForm(Form): raise ValidationError(Markup(u'Dieser Benutzername ist momentan nicht erlaubt. ' u'Weitere Informationen' % url_for('about'))) - else: - print 'not in blacklist: %r' % field.data - else: - print 'no blacklist' else: raise ValidationError(u'Dieser Benutzername ist schon vergeben') + def validate_mail(form, field): + #TODO + pass + class RegisterCompleteForm(Form): password = PasswordField('Passwort', [validators.Required(), -- cgit v1.2.3-1-g7c22