diff --git a/CHANGELOG.md b/CHANGELOG.md index 4dd9438a..cbd22a47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ upgrading Freposte.io as some changes will include useful notes. v1.6.1 - unreleased ------------------- - Enhancement: Make Unbound drop privileges after binding to port +- Enhancement: Create an Authentication Token with IPv6 address restriction ([#829](https://github.com/Mailu/Mailu/issues/829)) v1.6.0 - 2019-01-18 ------------------- diff --git a/core/admin/mailu/ui/forms.py b/core/admin/mailu/ui/forms.py index 48355748..356137e8 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'))