mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-06-01 15:23:10 +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):
|
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!")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue