mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-05-27 06:54:41 +00:00
implemented reCaptcha
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user