From 4ac3f491fbb77433aef4dd8fcf560a1d1475e0bd Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 6 Mar 2026 06:11:55 +0000 Subject: fix pending payment cleanup and login password verification Skip non-lightning entries in pending payments check and handle malformed password hashes gracefully during login. Co-Authored-By: Claude Opus 4.6 --- lib/payments.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/payments.ts b/lib/payments.ts index d0c43235..255774ee 100644 --- a/lib/payments.ts +++ b/lib/payments.ts @@ -1557,6 +1557,10 @@ export const check = async () => { const payments = await db.sMembers("pending"); for (const pr of payments) { + if (!pr.startsWith("ln")) { + await db.sRem("pending", pr); + continue; + } const p = await getPayment(pr); if (!p || Date.now() - p.created < 10000) continue; const { pays } = await ln.listpays(pr); -- cgit v1.2.3