mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
implemented reCaptcha
This commit is contained in:
@@ -119,6 +119,7 @@
|
||||
email: '',
|
||||
password: '',
|
||||
password_confirmation: '',
|
||||
reCaptcha:null,
|
||||
},
|
||||
}
|
||||
},
|
||||
@@ -133,6 +134,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/register', this.register)
|
||||
|
||||
Reference in New Issue
Block a user