summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.js b/server.js
index 3e449c8..071b429 100644
--- a/server.js
+++ b/server.js
@@ -59,7 +59,7 @@ const checkRateLimiting = (req, res, next) => {
const checkCaptcha = (req, res, next) => {
const token = String(req.get("X-CAPTCHA-TOKEN"));
- if (!token.match(/^[a-zA-Z0-9-_]{8,}$/)) {
+ if (!token.match(/^[a-zA-Z0-9-_]{30,60}$/)) {
res.status(403).json({
status: "error",
error: "no token sent"