UPDATE: Updated VideoPage UI

UPDATE: Added response to successful password reset redirect to homepage
This commit is contained in:
JustIceO7
2025-02-14 00:14:16 +00:00
parent 9bd1e249ed
commit 88c9b168fd
9 changed files with 98 additions and 78 deletions

View File

@@ -31,7 +31,7 @@ def verify_token(token: str, salt_value) -> Optional[str]:
print("Token is invalid", flush=True)
return None
def reset_password(new_password: str, email: str) -> bool:
def reset_password(new_password: str, email: str):
"""
Given email and new password reset the password for a given user
"""
@@ -41,5 +41,3 @@ def reset_password(new_password: str, email: str) -> bool:
SET password = ?
WHERE email = ?
""", (generate_password_hash(new_password), email))
return True