Ver código fonte

remove previous temporary captcha

Olivier Massot 1 ano atrás
pai
commit
260759d6a1
1 arquivos alterados com 1 adições e 15 exclusões
  1. 1 15
      components/Contact/Form.vue

+ 1 - 15
components/Contact/Form.vue

@@ -161,17 +161,6 @@
           label="Je souhaite recevoir des communications d'Opentalent par email (promotions, informations logiciel…). Je pourrai me désinscrire à tout moment."
         />
 
-        <!-- TODO: Remplacer par un vrai captcha
-        voir:
-          - https://nuxt.com/modules/recaptcha
-          - https://nuxt.com/modules/turnstile
-        -->
-        <v-checkbox
-          v-model="captchaChecked"
-          :rules="[(v) => !!v || 'You must pass the captcha']"
-          label="Captcha"
-        />
-
         <!-- @see https://github.com/hCaptcha/vue-hcaptcha -->
         <vue-hcaptcha :sitekey="runtimeConfig.hCaptchaSiteKey" />
 
@@ -239,8 +228,6 @@ const concernedProduct: Ref<string | null> = ref(null);
 
 const newsletterSubscription: Ref<boolean> = ref(false);
 
-const captchaChecked: Ref<boolean> = ref(false);
-
 const submissionStatus: Ref<string | null> = ref(null);
 
 
@@ -275,8 +262,7 @@ const valid: ComputedRef<boolean> = computed(() => {
     validatePhone(phone.value) === true &&
     validateStructureName(structureName.value) === true &&
     validateMessageLength(message.value) === true &&
-    privacyPolicy.value === true &&
-    captchaChecked.value === true
+    privacyPolicy.value === true
   );
 });