diff --git a/src/middlewares/authenticator.js b/src/middlewares/authenticator.js index 5f303c345..4e9d410ea 100644 --- a/src/middlewares/authenticator.js +++ b/src/middlewares/authenticator.js @@ -67,7 +67,7 @@ module.exports = async function (req, res, next) { const isCaptchaEnabledForRoute = common.captchaEnabledAPIs.includes(req.path) if (isCaptchaEnabledForRoute) { // get the token from API - const captchaToken = req.get('captcha-token') + const captchaToken = req.get('captchaToken') // verify token if (!(await verifyCaptchaToken(captchaToken))) { throw responses.failureResponse({