diff options
| -rw-r--r-- | routes/users.ts | 12 |
1 files changed, 1 insertions, 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 }; |
