WL-11 - Remove RECAPTCHA

This commit is contained in:
2020-10-28 14:36:11 +01:00
parent 2360971b20
commit 80db77b53f

View File

@@ -39,12 +39,11 @@
</div> </div>
<form <form
class="w-3/4 sm:w-1/2 max-w-lg mx-auto p-6 rounded shadow-xl flex flex-col items-center bg-gradient-to-br from-indigo-800 to-blue-800" class="w-3/4 sm:w-1/2 max-w-lg mx-auto p-6 rounded shadow-xl flex flex-col items-end bg-gradient-to-br from-indigo-800 to-blue-800"
name="contact" name="contact"
method="POST" method="POST"
data-netlify="true" data-netlify="true"
data-netlify-honeypot="bot-field" data-netlify-honeypot="bot-field"
data-netlify-recaptcha="true"
@submit.prevent="handleSubmit" @submit.prevent="handleSubmit"
> >
<input type="hidden" name="form-name" value="contact" /> <input type="hidden" name="form-name" value="contact" />
@@ -96,7 +95,6 @@
v-model="form.message" v-model="form.message"
placeholder="Hi, ..." placeholder="Hi, ..."
></textarea> ></textarea>
<div class="mb-4" data-netlify-recaptcha="true"></div>
<button <button
type="submit" type="submit"
class="bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded" class="bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded"
@@ -117,7 +115,7 @@ export default {
fullname: "", fullname: "",
email: "", email: "",
message: "", message: "",
honeypot: "" honeypot: undefined
}, },
showFeedback: false, showFeedback: false,
feedback: { feedback: {
@@ -138,6 +136,7 @@ export default {
const axiosConfig = { const axiosConfig = {
header: { "Content-Type": "application/x-www-form-urlencoded" } header: { "Content-Type": "application/x-www-form-urlencoded" }
}; };
console.log(this.form);
axios axios
.post( .post(
"/", "/",