aboutsummaryrefslogtreecommitdiffstats
path: root/routes/users.ts
Commit message (Collapse)AuthorAgeFilesLines
* nwc: fix pay_invoice reply reliability, rate-limit drops, notificationsAdam Soltys2026-06-061-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Three issues reported by an NWC client integrator (refs #80): (a) pay_invoice sync reply: the handler polled listpays for ~20s then returned a misleading "Payment timed out" error on slow routes even though the payment settled — client never got the preimage. sendLightning already runs xpay to completion and finalize() sets p.ref = preimage, so return that directly; keep a longer listpays loop only as a fallback, and on still-in-flight return an explicit "check with lookup_invoice" rather than implying failure. (b) rate limiting: raised per-pubkey cap 5/min -> 60/min (normal usage — a balance check + payment + a few lookup_invoice reconciles — trivially exceeded 5), and over-limit requests now get a NIP-47 RATE_LIMITED error reply instead of a silent drop that looked exactly like a lost reply. Also: every request path now always sends a 23195 reply (success, error, or handler-returned- nothing) so a client never hangs waiting. (c) notifications: payment_received/payment_sent are advertised in the info event but app.notify defaulted to false unless the client sent notify:"true" (only ~1% of apps had it on), so they never fired. Default notify ON; only disable when explicitly "false". (Existing apps still false — backfill TBD.) Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
* listener logsAdam Soltys2026-03-181-2/+1
|
* remove logsAdam Soltys2026-03-171-10/+0
|
* pass bytes for app secretAdam Soltys2026-03-141-1/+2
|
* fix pending payment cleanup and login password verificationAdam Soltys2026-03-061-5/+7
| | | | | | | Skip non-lightning entries in pending payments check and handle malformed password hashes gracefully during login. Co-Authored-By: Claude Opus 4.6 <[email protected]>
* fix login/reset glitchesAdam Soltys2026-03-031-7/+18
|
* check forwarded host headerAdam Soltys2026-02-061-1/+1
|
* health checkAdam Soltys2026-02-061-45/+6
|
* whitelist ua'sAdam Soltys2026-02-041-0/+11
|
* strip email from usernameAdam Soltys2026-02-021-0/+1
|
* check usernameAdam Soltys2026-01-291-11/+1
|
* skip captcha for torAdam Soltys2026-01-271-0/+4
|
* case insensitive usernamesAdam Soltys2026-01-261-1/+4
|
* captcha bypass whitelistAdam Soltys2026-01-261-10/+13
|
* read payments from archiveAdam Soltys2026-01-221-6/+6
|
* fix admin resetsAdam Soltys2026-01-221-7/+3
|
* api key captcha bypassAdam Soltys2026-01-221-3/+11
|
* captcha thresholdsAdam Soltys2026-01-211-11/+18
|
* require auth for accountsAdam Soltys2026-01-211-0/+5
|
* recaptcha on loginAdam Soltys2026-01-211-2/+32
|
* loggingAdam Soltys2026-01-211-1/+3
|
* check usernameAdam Soltys2026-01-191-0/+1
|
* check app ownershipAdam Soltys2025-11-171-2/+5
|
* check usernameAdam Soltys2025-11-171-2/+5
|
* require challenge after login failuresAdam Soltys2025-10-101-7/+9
|
* fail fasterAdam Soltys2025-10-011-1/+1
|
* challenge verifyAdam Soltys2025-10-011-12/+4
|
* login challengeAdam Soltys2025-10-011-0/+11
|
* fix username change logicAdam Soltys2025-09-301-9/+9
|
* rotate server keyAdam Soltys2025-09-291-3/+3
|
* disable delete endpointAdam Soltys2025-09-241-1/+2
|
* fix existence checkAdam Soltys2025-09-231-1/+1
|
* remove verification on email changeAdam Soltys2025-09-181-0/+5
|
* flash routeAdam Soltys2025-09-111-27/+12
|
* default account idAdam Soltys2025-09-101-2/+3
|
* convert pubkey from npubAdam Soltys2025-09-061-1/+1
|
* support readonly tokensAdam Soltys2025-09-041-1/+8
|
* handle user with no pubkeyAdam Soltys2025-08-101-1/+2
|
* reserved usernamesAdam Soltys2025-08-071-0/+2
|
* fresh attributeAdam Soltys2025-07-101-2/+5
|
* check usernameAdam Soltys2025-07-081-4/+2
|
* auto payAdam Soltys2025-07-081-7/+46
|
* username checksAdam Soltys2025-06-161-10/+22
|
* track paymentsAdam Soltys2025-05-301-5/+2
|
* check blacklistAdam Soltys2025-05-131-1/+7
|
* whitelistingAdam Soltys2025-05-121-0/+9
|
* locked balanceAdam Soltys2025-05-121-1/+2
|
* default username if necessaryAdam Soltys2025-04-171-1/+1
|
* creditsAdam Soltys2025-04-071-0/+8
|
* fix account deletionAdam Soltys2025-03-191-2/+2
|