From c8758a65262b56482b5640e6e77b4797f846cd2a Mon Sep 17 00:00:00 2001 From: hoellen Date: Sun, 13 Jan 2019 13:25:28 +0100 Subject: [PATCH] allow ipv6 addresses for tokens --- CHANGELOG.md | 1 + core/admin/mailu/ui/forms.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 07b5b164..2bc867cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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: 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: Create an Authentication Token with IPv6 address restriction ([#829](https://github.com/Mailu/Mailu/issues/829)) - Upstream: Update Roundcube - Upstream: Update Rainloop - Bug: Rainloop fails with "domain not allowed" ([#93](https://github.com/Mailu/Mailu/issues/93)) diff --git a/core/admin/mailu/ui/forms.py b/core/admin/mailu/ui/forms.py index e8302199..ed0a0a2c 100644 --- a/core/admin/mailu/ui/forms.py +++ b/core/admin/mailu/ui/forms.py @@ -137,7 +137,7 @@ class TokenForm(flask_wtf.FlaskForm): raw_password = fields.HiddenField([validators.DataRequired()]) comment = fields.StringField(_('Comment')) ip = fields.StringField( - _('Authorized IP'), [validators.Optional(), validators.IPAddress()] + _('Authorized IP'), [validators.Optional(), validators.IPAddress(ipv6=True)] ) submit = fields.SubmitField(_('Save'))