mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-30 04:30:49 +02:00
Fix updating the default quota_bytes in the form
This commit is contained in:
parent
54667b2789
commit
74fabccda6
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user