Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
$('BPQL > body emails > email > email', ccbusca).each((idx, element) => {
let email = $(element).text();
if (!emailRegex({
exact: true
}).test(email)) {
return /* void */;
}
newMark('fa-at', email, openEmail(report, email, document));
});
form.element().submit(e => {
e.preventDefault();
const errors = [];
const email = inputEmail.val();
const password = inputPassword.val();
const confirmPassword = inputConfirmPassword.val();
if (!emailRegex().test(email)) {
inputEmail.addClass('error');
errors.push('O endereço de e-mail informado não é válido.');
} else {
inputEmail.removeClass('error');
}
if (!inputAgree[1].is(':checked')) {
errors.push('Você precisa aceitar o contrato de usuário.');
}
if (!SAFE_PASSWORD.test(password)) {
inputPassword.addClass('error');
errors.push('A senha deve possuir no mínimo 6 dígitos.');
} else if (password !== confirmPassword) {
inputPassword.addClass('error');
inputConfirmPassword.addClass('error');
validate: ({element}) => emailRegex().test(element.val())
}, {
validate: ({element}) => emailRegex().test(element.val())
} ,{
form.element().submit(e => {
e.preventDefault();
const email = inputEmailAddress.val();
if (!emailRegex().test(email)) {
inputEmailAddress.addClass('error');
toastr.warning('Seu endereço de email não parece ser válido.', 'Endereço de email inválido.');
return;
}
controller.serverCommunication.call('INSERT INTO \'HARLANMAILLIST\'.\'Addresses\'', {
data: {
address: email
}
});
deleteElements(elements);
controller.call('welcomescreen::wizard', modal);
});