style: format code with black

Format code with black

This commit fixes the style issues introduced in 4d912d3 according to the output
from Black.

Details: dbebbafb-114d-4a54-9ece-1c04b2c4f943/
This commit is contained in:
deepsource-autofix[bot] 2023-06-24 21:47:31 +00:00 committed by GitHub
parent 4d912d314c
commit 61cfd92929
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): if not check_password_hash(user.password, current):
error.append("Current password is incorrect!") error.append("Current password is incorrect!")
if len(new) < 8: if len(new) < 8:
error.append( error.append("New password is too short! Must be at least 8 characters long.")
"New password is too short! Must be at least 8 characters long."
)
if new != confirm: if new != confirm:
error.append("New passwords do not match!") error.append("New passwords do not match!")