mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-05-29 06:03:11 +00:00
Merge pull request #13 from Fluffy-Bean/deepsource-transform-4f18a7cb
format code with black
This commit is contained in:
commit
55940598ee
1 changed files with 2 additions and 4 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue