allow ipv6 addresses for tokens

master
hoellen 6 years ago
parent 9175b15d49
commit c8758a6526

@ -80,6 +80,7 @@ v1.6.0 - unreleased
- Enhancement: Include favicon package ([#801](https://github.com/Mailu/Mailu/issues/801), ([#802](https://github.com/Mailu/Mailu/issues/802)) - Enhancement: Include favicon package ([#801](https://github.com/Mailu/Mailu/issues/801), ([#802](https://github.com/Mailu/Mailu/issues/802))
- Enhancement: Add logging at critical places in python start.py scripts. Implement LOG_LEVEL to control verbosity ([#588](https://github.com/Mailu/Mailu/issues/588)) - Enhancement: Add logging at critical places in python start.py scripts. Implement LOG_LEVEL to control verbosity ([#588](https://github.com/Mailu/Mailu/issues/588))
- Enhancement: Mark message as seen when reporting as spam - Enhancement: Mark message as seen when reporting as spam
- Enhancement: Create an Authentication Token with IPv6 address restriction ([#829](https://github.com/Mailu/Mailu/issues/829))
- Upstream: Update Roundcube - Upstream: Update Roundcube
- Upstream: Update Rainloop - Upstream: Update Rainloop
- Bug: Rainloop fails with "domain not allowed" ([#93](https://github.com/Mailu/Mailu/issues/93)) - Bug: Rainloop fails with "domain not allowed" ([#93](https://github.com/Mailu/Mailu/issues/93))

@ -137,7 +137,7 @@ class TokenForm(flask_wtf.FlaskForm):
raw_password = fields.HiddenField([validators.DataRequired()]) raw_password = fields.HiddenField([validators.DataRequired()])
comment = fields.StringField(_('Comment')) comment = fields.StringField(_('Comment'))
ip = fields.StringField( ip = fields.StringField(
_('Authorized IP'), [validators.Optional(), validators.IPAddress()] _('Authorized IP'), [validators.Optional(), validators.IPAddress(ipv6=True)]
) )
submit = fields.SubmitField(_('Save')) submit = fields.SubmitField(_('Save'))

Loading…
Cancel
Save