1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-07-17 01:32:29 +02:00

Fix updating the default quota_bytes in the form

This commit is contained in:
PM Extra
2023-02-24 09:42:59 +08:00
committed by GitHub
parent 54667b2789
commit 74fabccda6

View File

@ -30,6 +30,7 @@ def user_create(domain_name):
wtforms.validators.NumberRange(max=domain.max_quota_bytes)]
if form.quota_bytes.default > domain.max_quota_bytes:
form.quota_bytes.default = domain.max_quota_bytes
form.process()
if form.validate_on_submit():
if msg := utils.isBadOrPwned(form):
flask.flash(msg, "error")