Add some example settings

This commit is contained in:
Pierre Jaury
2016-03-20 11:09:06 +01:00
parent 6ab580b976
commit 6638f656e2
4 changed files with 35 additions and 2 deletions

View File

@@ -31,6 +31,13 @@ class UserEditForm(Form):
submit = fields.SubmitField('Create')
class UserSettingsForm(Form):
displayed_name = fields.StringField('Displayed name')
spam_enabled = fields.BooleanField('Enable spam filter')
spam_threshold = fields.DecimalField('Spam filter sensitivity')
submit = fields.SubmitField('Save settings')
class UserPasswordForm(Form):
pw = fields.PasswordField('Password', [validators.DataRequired()])
pw2 = fields.PasswordField('Password check', [validators.DataRequired()])