mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
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:
parent
986df75f43
commit
d4ab151fce
1 changed files with 0 additions and 6 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue