Skip to content

Commit

Permalink
Removed basic email validation
Browse files Browse the repository at this point in the history
no-issue

This was rubbish anyway, and we should just rely on the input having `type=email`
  • Loading branch information
allouis committed Nov 13, 2019
1 parent 986df75 commit d4ab151
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions core/server/public/members.js
Expand Up @@ -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',
Expand Down

0 comments on commit d4ab151

Please sign in to comment.