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

As per review

This commit is contained in:
Florent Daigniere 2024-07-30 11:51:25 +02:00
parent 0eafff00c1
commit 11e72e7034

View File

@ -94,7 +94,7 @@ def user_settings(user_email):
utils.formatCSVField(form.forward_destination) utils.formatCSVField(form.forward_destination)
if form.validate_on_submit(): if form.validate_on_submit():
user.forward_enabled = bool(flask.request.form.get('forward_enabled', False)) user.forward_enabled = bool(flask.request.form.get('forward_enabled', False))
if form.forward_enabled and not form.forward_destination.data: if user.forward_enabled and not form.forward_destination.data:
flask.flash('Destination email address is missing', 'error') flask.flash('Destination email address is missing', 'error')
return flask.redirect( return flask.redirect(
flask.url_for('.user_settings', user_email=user_email)) flask.url_for('.user_settings', user_email=user_email))