1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-12 10:45:38 +02:00

Merge pull request #834 from hoellen/token-ipv6

allow ipv6 addresses for tokens
This commit is contained in:
hoellen 2019-01-23 21:30:13 +01:00 committed by GitHub
commit 808092c65e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ upgrading Freposte.io as some changes will include useful notes.
v1.6.1 - unreleased v1.6.1 - unreleased
------------------- -------------------
- Enhancement: Make Unbound drop privileges after binding to port - 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 v1.6.0 - 2019-01-18
------------------- -------------------

View File

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