Fixed reCaptcha for the contact form

This commit is contained in:
Čarodej
2022-06-29 12:16:06 +02:00
parent e01fc99ef4
commit 4c52b6a627
8 changed files with 19 additions and 17 deletions

View File

@@ -208,11 +208,10 @@ export default {
this.isLoading = true
// Get ReCaptcha token
if (config.allowedRecaptcha) {
this.register.reCaptcha = await this.$reCaptchaToken('register').then((response) => {
return response
})
}
if (this.config.allowedRecaptcha) {
this.register.reCaptcha = await this.$reCaptchaToken('register')
.then((response) => response)
}
// Send request to get user token
axios