implemented reCaptcha

This commit is contained in:
Milos Holba
2022-01-25 14:28:22 +01:00
parent 68563b9e10
commit 8b1a3f0476
17 changed files with 15516 additions and 1026 deletions
@@ -92,6 +92,7 @@
contact: {
email: '',
message: '',
reCaptcha: null,
},
}
},
@@ -106,6 +107,13 @@
// Start loading
this.isLoading = true
// Get ReCaptcha token
if(config.allowedRecaptcha) {
this.register.reCaptcha = await this.$reCaptchaToken('register').then((response) => {
return response
})
}
// Send request to get user token
axios
.post('/api/contact', this.contact)