Explorar o código

fix: asking recaptcha for user

poeti8 %!s(int64=6) %!d(string=hai) anos
pai
achega
68075af147
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      server/handlers/auth.ts

+ 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",