Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class RegistrationForm(Form):
- username = TextField('Username', [validators.Length(min=4, max=20)])
- email = TextField('Email Address', [validators.Length(min=6, max=50)])
- password = PasswordField('New Password', [
- validators.Required(),
- validators.EqualTo('confirm', message='Passwords must match')
- ])
- confirm = PasswordField('Repeat Password')
- accept_tos = BooleanField('I accept the Terms of Service and Privacy Notice (updated Jan 22, 2015)', [validators.Required()])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement