From f3ca342318a4eb6886b9d9bcf8b539666a2130b0 Mon Sep 17 00:00:00 2001 From: Ashley Graves Date: Sat, 24 Feb 2024 17:12:53 +0000 Subject: [PATCH 1/2] Update index.vue - Also check enableMcaptcha for noBotProtection --- packages/frontend/src/pages/admin/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/pages/admin/index.vue b/packages/frontend/src/pages/admin/index.vue index 5a19e9a7c6..d2d4e8be97 100644 --- a/packages/frontend/src/pages/admin/index.vue +++ b/packages/frontend/src/pages/admin/index.vue @@ -59,7 +59,7 @@ const view = ref(null); const el = ref(null); const pageProps = ref({}); let noMaintainerInformation = isEmpty(instance.maintainerName) || isEmpty(instance.maintainerEmail); -let noBotProtection = !instance.disableRegistration && !instance.enableHcaptcha && !instance.enableRecaptcha && !instance.enableTurnstile; +let noBotProtection = !instance.disableRegistration && !instance.enableHcaptcha && !instance.enableRecaptcha&& && !instance.enableMcaptcha && !instance.enableTurnstile; let noEmailServer = !instance.enableEmail; const thereIsUnresolvedAbuseReport = ref(false); const pendingUserApprovals = ref(false); From 17df852c331e32cbea79c85c67cc7e047a80009c Mon Sep 17 00:00:00 2001 From: Ashley Graves Date: Sat, 24 Feb 2024 17:15:24 +0000 Subject: [PATCH 2/2] Update index.vue - I'm dumb sorry --- packages/frontend/src/pages/admin/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/pages/admin/index.vue b/packages/frontend/src/pages/admin/index.vue index d2d4e8be97..0fd073dd0d 100644 --- a/packages/frontend/src/pages/admin/index.vue +++ b/packages/frontend/src/pages/admin/index.vue @@ -59,7 +59,7 @@ const view = ref(null); const el = ref(null); const pageProps = ref({}); let noMaintainerInformation = isEmpty(instance.maintainerName) || isEmpty(instance.maintainerEmail); -let noBotProtection = !instance.disableRegistration && !instance.enableHcaptcha && !instance.enableRecaptcha&& && !instance.enableMcaptcha && !instance.enableTurnstile; +let noBotProtection = !instance.disableRegistration && !instance.enableHcaptcha && !instance.enableRecaptcha && !instance.enableMcaptcha && !instance.enableTurnstile; let noEmailServer = !instance.enableEmail; const thereIsUnresolvedAbuseReport = ref(false); const pendingUserApprovals = ref(false);