New Membership - Accept Incorrect Email Address

https://demo.cs-cart.com

the member accepts the incorrect email address.

he / she accepts the incorrect e-mail address when he / she is a member.

new membership

E-mail: aaaaaa@wwwww.com tr

pass: 1234

pass: 1234

Please post it to the bug tracker

https://forum.cs-cart.com/tracker/

how can you fix it, can you help?

https://forum.cs-cart.com/tracker/issue-7337-new-membership-the-member-accepts-the-incorrect-e-mail-address/

/public_html/js/tygh/core.js

// Check the email field
if (lbl.hasClass('cm-email')) {
if ($.is.email(elm.val()) == false) {
if (lbl.hasClass('cm-required') || $.is.blank(elm.val()) == false) {
_formMessage(_.tr('error_validator_email'), lbl);
set_mark = true;
}
}
}

how can you fix it, can you help?

https://forum.cs-cart.com/tracker/issue-7337-new-membership-the-member-accepts-the-incorrect-e-mail-address/

/public_html/js/tygh/core.js

// Check the email field
if (lbl.hasClass('cm-email')) {
if ($.is.email(elm.val()) == false) {
if (lbl.hasClass('cm-required') || $.is.blank(elm.val()) == false) {
_formMessage(_.tr('error_validator_email'), lbl);
set_mark = true;
}
}
}

Hello!

Try to replace the following code:

return /\S+@\S+.\S+/i.test(email) ? true : false;

with this one:

return /^([\w-+=_]+(?:\.[\w-+=_]+)*)@((?:[-a-zA-Z0-9]+\.)*[a-zA-Z0-9][-a-zA-Z0-9]{0,65})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i.test(email) ? true : false;

in js/tygh/core.js file.

thank you very much my problem solved.

Incorrect email addresses on electronic billing are a problem.

thank you very much my problem solved.

Incorrect email addresses on electronic billing are a problem.

Glad to know that now it is working as you expected.