Add fields to enable and/or disable pop and imap

This commit is contained in:
Pierre Jaury
2016-03-22 21:05:08 +01:00
parent 49b33aba88
commit ec0304456b
5 changed files with 35 additions and 20 deletions

View File

@@ -27,6 +27,8 @@ class UserForm(Form):
pw = fields.PasswordField('Password', [validators.DataRequired()])
pw2 = fields.PasswordField('Confirm password', [validators.EqualTo('pw')])
quota_bytes = fields_.DecimalSliderField('Quota', default=1000000000)
enable_imap = fields.BooleanField('Allow IMAP access', default=True)
enable_pop = fields.BooleanField('Allow POP3 access', default=True)
comment = fields.StringField('Comment')
submit = fields.SubmitField('Save')