Merge pull request #13 from Fluffy-Bean/deepsource-transform-4f18a7cb

format code with black
This commit is contained in:
Michał Gdula 2023-06-24 22:58:52 +01:00 committed by GitHub
commit 55940598ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -128,9 +128,7 @@ def post_password_reset():
if not check_password_hash(user.password, current):
error.append("Current password is incorrect!")
if len(new) < 8:
error.append(
"New password is too short! Must be at least 8 characters long."
)
error.append("New password is too short! Must be at least 8 characters long.")
if new != confirm:
error.append("New passwords do not match!")
@ -184,4 +182,4 @@ def post_delete_account():
flash("Successfully deleted account!", "success")
logout_user()
return redirect(url_for("auth.auth"))
return redirect(url_for("auth.auth"))