diff options
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -57,7 +57,7 @@ const checkRateLimiting = (req, res, next) => { }; const checkCaptcha = (req, res, next) => { - const token = String(req.get("X-CAPTCHA-TOKEN")); + const token = String(req.get("X-CAPTCHA-TOKEN") || ""); if (!token.match(/^[a-zA-Z0-9-_]{30,60}$/)) { res.status(403).json({ |