Exemple #1
0
class SignupForm(user_form):
    password = PasswordField('Password',
                             validators=[
                                 validators.Required(),
                                 validators.EqualTo('confirm', message='密码不匹配')
                             ])
    confirm = PasswordField('confirm')
Exemple #2
0
class SignupForm(user_form):
    password = PasswordField('Password',
                             validators=[
                                 validators.Required(),
                                 validators.EqualTo(
                                     'confirm', message='Passwords must match')
                             ])
    confirm = PasswordField('Repeat Password')
Exemple #3
0
class ResetPasswordForm(user_form):
    password = PasswordField(
        'Password',
        validators=[validators.DataRequired(),
                    validators.EqualTo('confirm')])

    confirm = PasswordField('Repeat Password',
                            validators=[validators.DataRequired()])
Exemple #4
0
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()