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

View File

@@ -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)