Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class LoginForm(PostForm, LoginMixin):
- def create_form(self):
- self.add_field('email', label='E-mail', validators=[NotEmpty()])
- self.add_field('password', label='Hasło', validators=[NotEmpty()])
- self.add_form_validator(EmailMustExists())
- self.add_form_validator(ValidateUserPassword())
Advertisement
Add Comment
Please, Sign In to add comment