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

@@ -131,11 +131,7 @@ def user_reset_password(token, new_password):
r.delete(token)
email = verify_token(token[:-5], salt_value)
if email:
response = reset_password(new_password, email)
if response:
return 200
else:
return jsonify({"error": "Failed to reset password"}), 500
reset_password(new_password, email)
return jsonify({"message": "Password reset successful"}), 200
return jsonify({"error": "Invalid token"}), 400