From 1137e24bedd50e2a840abc7df3e3a2ceb4fbe6d8 Mon Sep 17 00:00:00 2001 From: adithya_dinesh Date: Wed, 27 Mar 2024 13:59:30 +0530 Subject: [PATCH] frontend requested change for recaptcha --- src/middlewares/authenticator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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({