aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routes/users.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/routes/users.ts b/routes/users.ts
index c5fd0c39..60fe02f5 100644
--- a/routes/users.ts
+++ b/routes/users.ts
@@ -37,7 +37,10 @@ const verifyRecaptcha = async (response, req?) => {
}
const { username } = req.body;
- if (await db.sIsMember("nocaptcha", username)) return true;
+ if (
+ await db.sIsMember("nocaptcha", username.toLowerCase().replace(/\s/g, ""))
+ )
+ return true;
if (!response) return false;