From 08d292474e8310a73fb28d35c500bd8063b73ca3 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 19 Jan 2026 00:27:30 +0000 Subject: check username --- routes/payments.ts | 2 +- routes/users.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'routes') diff --git a/routes/payments.ts b/routes/payments.ts index ea968548..d4d83bd2 100644 --- a/routes/payments.ts +++ b/routes/payments.ts @@ -466,7 +466,7 @@ export default { if (!p) { const invoice = await getInvoice(address); if (!hot && aid !== invoice?.aid) continue; - if (sats(amount) < 500) continue; + if (sats(amount) < 300) continue; await credit({ hash: address, amount: sats(amount), diff --git a/routes/users.ts b/routes/users.ts index 7c6d0938..bd2ffb42 100644 --- a/routes/users.ts +++ b/routes/users.ts @@ -201,6 +201,7 @@ export default { if (!valid.test(username)) fail("Usernames can only have letters and numbers"); if (reserved.includes(username)) fail("Invalid username"); + if (username?.includes("undefined")) fail("Invalid username"); let exists; -- cgit v1.2.3