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

@@ -26,6 +26,15 @@ const ValidatorHelpers = {
Vue.prototype.$isInvalidEmail = function (email) {
return email.match(/^[^\s@]+@[^\s@]+\.[^\s@]+$/) === null
}
Vue.prototype.$reCaptchaToken = async function (action) {
await this.$recaptchaLoaded()
let token = await this.$recaptcha(action)
return token
}
}
}