mirror of
https://github.com/Mailu/Mailu.git
synced 2025-03-05 14:55:20 +02:00
Merge #2545
2545: Don't force a password reset r=mergify[bot] a=nextgens ## What type of PR? bug-fix ## What does this PR do? Don't force a password reset. You may want to edit the user without changing his password. Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
This commit is contained in:
commit
604eb69122
@ -64,6 +64,7 @@ def user_edit(user_email):
|
||||
form.quota_bytes.validators = [
|
||||
wtforms.validators.NumberRange(max=max_quota_bytes)]
|
||||
if form.validate_on_submit():
|
||||
if form.pw.data:
|
||||
if msg := utils.isBadOrPwned(form):
|
||||
flask.flash(msg, "error")
|
||||
return flask.render_template('user/edit.html', form=form, user=user,
|
||||
|
Loading…
x
Reference in New Issue
Block a user