mirror of
https://github.com/Mailu/Mailu.git
synced 2025-06-10 23:47:59 +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)]
|
wtforms.validators.NumberRange(max=domain.max_quota_bytes)]
|
||||||
if form.quota_bytes.default > domain.max_quota_bytes:
|
if form.quota_bytes.default > domain.max_quota_bytes:
|
||||||
form.quota_bytes.default = domain.max_quota_bytes
|
form.quota_bytes.default = domain.max_quota_bytes
|
||||||
|
form.process()
|
||||||
if form.validate_on_submit():
|
if form.validate_on_submit():
|
||||||
if msg := utils.isBadOrPwned(form):
|
if msg := utils.isBadOrPwned(form):
|
||||||
flask.flash(msg, "error")
|
flask.flash(msg, "error")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user