mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 11:54:33 +03: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
@ -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…
Reference in New Issue
Block a user