Skip to content

Commit b1f9605

Browse files
committed
missed an if statement
1 parent e9312ea commit b1f9605

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

selfservice/blueprints/change.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,14 @@ def change():
2424
verify = request.form.get("verify")
2525

2626
if new_pw == verify:
27-
if len(new_pw) >= 12:
2827
try:
2928
passwd_change(username, old_pw, new_pw)
3029
return render_template("success.html", reset=True, version=version)
3130
except python_freeipa.exceptions.PWChangeInvalidPassword:
3231
flash("Incorrect password, please try again.")
3332
print("invalid password")
3433
except python_freeipa.exceptions.PWChangePolicyError:
35-
flash("Your password does not meet the requirements below.")
34+
flash("Your password does not meet the requirements.")
3635
print("password requirements")
3736
except Exception as e:
3837
print(e)

0 commit comments

Comments
 (0)