class SignupForm(user_form): password = PasswordField('Password', validators=[ validators.Required(), validators.EqualTo('confirm', message='密码不匹配') ]) confirm = PasswordField('confirm')
class SignupForm(user_form): password = PasswordField('Password', validators=[ validators.Required(), validators.EqualTo( 'confirm', message='Passwords must match') ]) confirm = PasswordField('Repeat Password')
class ResetPasswordForm(user_form): password = PasswordField( 'Password', validators=[validators.DataRequired(), validators.EqualTo('confirm')]) confirm = PasswordField('Repeat Password', validators=[validators.DataRequired()])
class SignupForm(user_form): password = PasswordField('Password', validators=[ validators.DataRequired(), validators.EqualTo( 'confirm', message='Passwords must match') ]) confirm = PasswordField('Repeat Password') location = StringField('Location') source = SelectField('source', choices=[('', 'Choisissez une source'), ('searchengine', 'Moteur de recherche'), ('friend', 'Amis'), ('website', 'Site Web'), ('print', 'Article'), ('radio', 'Radio'), ('school', 'Recherche')]) sourceoptional = StringField()