Merge pull request #834 from hoellen/token-ipv6

allow ipv6 addresses for tokens
master
hoellen 5 years ago committed by GitHub
commit 808092c65e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
-------------------

@ -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'))

Loading…
Cancel
Save