Эх сурвалжийг харах

fix: asking recaptcha for user

poeti8 6 жил өмнө
parent
commit
68075af147

+ 1 - 1
server/handlers/auth.ts

@@ -81,7 +81,7 @@ export const cooldown: Handler = async (req, res, next) => {
 
 export const recaptcha: Handler = async (req, res, next) => {
   if (process.env.NODE_ENV !== "production") return next();
-  if (!req.user) return next();
+  if (req.user) return next();
 
   const isReCaptchaValid = await axios({
     method: "post",