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
+9
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
}
}
}
+1
View File
@@ -357,6 +357,7 @@ const FunctionHelpers = {
'google': '/assets/socials/google.svg',
'facebook': '/assets/socials/facebook.svg',
'github': store.getters.isDarkMode ? '/assets/socials/github-dark.svg' : '/assets/socials/github.svg',
'recaptcha': '/assets/socials/recaptcha.svg',
}[driver]
}