You've already forked Mailu
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:
@ -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")
|
||||
|
Reference in New Issue
Block a user