|
|
@ -64,6 +64,7 @@ def user_edit(user_email):
|
|
|
|
form.quota_bytes.validators = [
|
|
|
|
form.quota_bytes.validators = [
|
|
|
|
wtforms.validators.NumberRange(max=max_quota_bytes)]
|
|
|
|
wtforms.validators.NumberRange(max=max_quota_bytes)]
|
|
|
|
if form.validate_on_submit():
|
|
|
|
if form.validate_on_submit():
|
|
|
|
|
|
|
|
if form.pw.data:
|
|
|
|
if msg := utils.isBadOrPwned(form):
|
|
|
|
if msg := utils.isBadOrPwned(form):
|
|
|
|
flask.flash(msg, "error")
|
|
|
|
flask.flash(msg, "error")
|
|
|
|
return flask.render_template('user/edit.html', form=form, user=user,
|
|
|
|
return flask.render_template('user/edit.html', form=form, user=user,
|
|
|
|