From 8fc40ae5e1400b4e7a3d4f05105742afd2c68854 Mon Sep 17 00:00:00 2001 From: gumi Date: Tue, 10 Apr 2018 19:15:13 -0400 Subject: ...it turns out tokens can be quite long --- src/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api.js b/src/api.js index eb6d726..f33aca4 100644 --- a/src/api.js +++ b/src/api.js @@ -36,7 +36,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-_]{30,60}$/)) { + if (!token.match(/^[a-zA-Z0-9-_]{20,800}$/)) { res.status(403).json({ status: "error", error: "no token sent" -- cgit v1.2.3-60-g2f50