From d3ada1af0023374b43f0cd8a5863e6f992d9bb92 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 29 Jan 2026 06:43:51 +0000 Subject: check username --- routes/users.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/routes/users.ts b/routes/users.ts index a00c16fe..ed9d6b76 100644 --- a/routes/users.ts +++ b/routes/users.ts @@ -41,7 +41,7 @@ const verifyRecaptcha = async (response, req?) => { } const { username } = req.body; - if ( + if (username && await db.sIsMember("nocaptcha", username.toLowerCase().replace(/\s/g, "")) ) return true; @@ -475,16 +475,6 @@ export default { } const { username } = user; - if ( - await db.sIsMember( - "compromised", - username.replace(/\s/g, "").toLowerCase(), - ) - ) { - warn("compromised nostr auth attempt"); - fail("unauthorized"); - } - l("nostr login", username, ip); const payload = { id: user.id }; -- cgit v1.2.3