Skip to content

Commit

Permalink
fix cloudflare turnstile
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandzors committed Nov 26, 2024
1 parent aa1f5ea commit 9f6f558
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/components/ContactForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ const isSubmitting = ref<boolean>(false);
const TURNSTILE_SITE_KEY = import.meta.env.PUBLIC_TURNSTILE_SITE_KEY || '{TURNSTILE_SITE_KEY}';
// Data for form inputs with two-way binding
const formData = ref({
name: '',
email: '',
phone: '',
title: '',
company: '',
message: '',
turnstileToken: ''
});
// Cloudflare Turnstile
onMounted(() => {
// Dynamically load the Turnstile widget
Expand All @@ -32,17 +43,6 @@ onMounted(() => {
};
});
// Data for form inputs with two-way binding
const formData = ref({
name: '',
email: '',
phone: '',
title: '',
company: '',
message: '',
turnstileToken: ''
});
// Set character limits
const nameMaxLength = 100;
const emailMaxLength = 150;
Expand Down

0 comments on commit 9f6f558

Please sign in to comment.