class ResetPasswordForm(Form): password = PasswordField('New Password', [ validators.Required(message=u'Password is required'), validators.Length(min=8, message=u'Password is too short. ' 'Password should be at least 8 characters.'), validators.Length(max=255, message=u'Password is too long. ' 'Password should be at most 255 characters.'), ], filters=[stripped], widget=BootstrapPasswordInput()) password2 = PasswordField( 'Verify New Password', [validators.EqualTo('password', message='Passwords must match')], filters=[stripped], widget=BootstrapPasswordInput())
class MergeAccountForm(Form): merged_username = TextField("Duplicate User's Email Address", [ validators.Required(message=u'Email address is required'), validators.Length(min=6, message=u'Email address is too short'), validators.Length(max=120, message=u'Email address is too long'), validators.Email(message=u'Email address is invalid'), NoHtmlCharacters(), EmailExists(), ], filters=[lowerstripped], widget=BootstrapTextInput()) merged_password = PasswordField( "Duplicate User's Password", [validators.Required(message=u"Please enter the user's password")], filters=[stripped], widget=BootstrapPasswordInput()) user_password = PasswordField("This Account's Password", [ validators.Required( message=u"Please enter the password for this account") ], filters=[stripped], widget=BootstrapPasswordInput())
], filters=[lowerstripped], widget=BootstrapTextInput(), ) password_field = PasswordField('Password', [ validators.Required(message=u'Password is required'), validators.Length(min=8, message=u'Password is too short. ' 'Password should be at least 8 characters.'), validators.Length(max=255, message=u'Password is too long. ' 'Password should be at most 255 characters.'), ], filters=[stripped], widget=BootstrapPasswordInput()) confirm_password_field = PasswordField( 'Verify Password', [validators.EqualTo('password', message='Passwords must match')], filters=[stripped], widget=BootstrapPasswordInput()) class ResetPasswordForm(Form): password = PasswordField('New Password', [ validators.Required(message=u'Password is required'), validators.Length(min=8, message=u'Password is too short. ' 'Password should be at least 8 characters.'), validators.Length(max=255,