mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-27 18:40:39 +00:00
Fixed reCaptcha for the contact form
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -121,11 +121,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.contact.reCaptcha = await this.$reCaptchaToken('register')
|
||||
.then((response) => response)
|
||||
}
|
||||
|
||||
// Send request to get user token
|
||||
axios
|
||||
|
||||
Reference in New Issue
Block a user