|
@@ -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
|
|
|
);
|
|
);
|
|
|
});
|
|
});
|
|
|
|
|
|