mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
Merge remote-tracking branch 'origin/recaptcha'
# Conflicts: # public/mix-manifest.json # src/Domain/Settings/Controllers/StoreSocialServiceCredentialsController.php
This commit is contained in:
9
resources/js/helpers/ValidatorHelpers.js
vendored
9
resources/js/helpers/ValidatorHelpers.js
vendored
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user