Advertisement
Guest User

Untitled

a guest
Dec 1st, 2018
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. class RegistrationForm(Form):
  2. username = TextField('Username', [validators.Length(min=4, max=20)])
  3. email = TextField('Email Address', [validators.Length(min=6, max=50)])
  4. password = PasswordField('New Password', [
  5. validators.Required(),
  6. validators.EqualTo('confirm', message='Passwords must match')
  7. ])
  8. confirm = PasswordField('Repeat Password')
  9. 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