improved email setup

This commit is contained in:
Čarodej
2022-04-01 10:14:50 +02:00
parent b1160a1327
commit 40b13acbb9
12 changed files with 754 additions and 144 deletions

View File

@@ -21,8 +21,8 @@ const ValidatorHelpers = {
return totalUniqueEmails.length >= limit.total && !totalUniqueEmails.includes(email)
}
Vue.prototype.$isInvalidEmail = function (email) {
return email.match(/^[^\s@]+@[^\s@]+\.[^\s@]+$/) === null
Vue.prototype.$isValidEmail = function (email) {
return email.match(/^[^\s@]+@[^\s@]+\.[^\s@]+$/) !== null
}
Vue.prototype.$reCaptchaToken = async function (action) {