mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-28 11:00:39 +00:00
implemented reCaptcha
This commit is contained in:
+9
@@ -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
@@ -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]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user