Removed basic email validation

no-issue

This was rubbish anyway, and we should just rely on the input having `type=email`
This commit is contained in:
Fabien O'Carroll 2019-11-13 18:18:49 +07:00 committed by GitHub
parent 986df75f43
commit d4ab151fce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,12 +15,6 @@ Array.prototype.forEach.call(document.querySelectorAll('form[data-members-form]'
emailType = form.dataset.membersForm;
}
if (!email.includes('@')) {
form.classList.add('invalid')
form.addEventListener('submit', submitHandler);
return;
}
form.classList.add('loading');
fetch('{{admin-url}}/api/canary/members/send-magic-link/', {
method: 'POST',