소스 검색

remove previous temporary captcha

Olivier Massot 1 년 전
부모
커밋
260759d6a1
1개의 변경된 파일1개의 추가작업 그리고 15개의 파일을 삭제
  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."
           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 -->
         <!-- @see https://github.com/hCaptcha/vue-hcaptcha -->
         <vue-hcaptcha :sitekey="runtimeConfig.hCaptchaSiteKey" />
         <vue-hcaptcha :sitekey="runtimeConfig.hCaptchaSiteKey" />
 
 
@@ -239,8 +228,6 @@ const concernedProduct: Ref<string | null> = ref(null);
 
 
 const newsletterSubscription: Ref<boolean> = ref(false);
 const newsletterSubscription: Ref<boolean> = ref(false);
 
 
-const captchaChecked: Ref<boolean> = ref(false);
-
 const submissionStatus: Ref<string | null> = ref(null);
 const submissionStatus: Ref<string | null> = ref(null);
 
 
 
 
@@ -275,8 +262,7 @@ const valid: ComputedRef<boolean> = computed(() => {
     validatePhone(phone.value) === true &&
     validatePhone(phone.value) === true &&
     validateStructureName(structureName.value) === true &&
     validateStructureName(structureName.value) === true &&
     validateMessageLength(message.value) === true &&
     validateMessageLength(message.value) === true &&
-    privacyPolicy.value === true &&
-    captchaChecked.value === true
+    privacyPolicy.value === true
   );
   );
 });
 });