You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-08-10 22:31:47 +02:00
Fix password validator for creating fetched accounts
This commit is contained in:
@@ -9,7 +9,8 @@ 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))
|
- Enhancement: Create an Authentication Token with IPv6 address restriction ([#829](https://github.com/Mailu/Mailu/issues/829))
|
||||||
|
- Bug: Fix creating new fetched accounts
|
||||||
|
-
|
||||||
v1.6.0 - 2019-01-18
|
v1.6.0 - 2019-01-18
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
@@ -22,7 +22,7 @@ def fetch_create(user_email):
|
|||||||
user_email = user_email or flask_login.current_user.email
|
user_email = user_email or flask_login.current_user.email
|
||||||
user = models.User.query.get(user_email) or flask.abort(404)
|
user = models.User.query.get(user_email) or flask.abort(404)
|
||||||
form = forms.FetchForm()
|
form = forms.FetchForm()
|
||||||
form.pw.validators = [wtforms.validators.DataRequired()]
|
form.password.validators = [wtforms.validators.DataRequired()]
|
||||||
if form.validate_on_submit():
|
if form.validate_on_submit():
|
||||||
fetch = models.Fetch(user=user)
|
fetch = models.Fetch(user=user)
|
||||||
form.populate_obj(fetch)
|
form.populate_obj(fetch)
|
||||||
|
Reference in New Issue
Block a user