Subj : emailval.js accepts incomplete email addresses
To : Codefenix
From : echicken
Date : Sat Aug 31 2024 09:05 pm
Re: emailval.js accepts incomplete email addresses
By: Codefenix to All on Thu Aug 29 2024 08:30:51
Co> if (user.netmail.indexOf(".") < 0 && user.netmail.indexOf("@") < 0) {
If you *really* want to check if an email address is valid, then there's a whole rabbit hole of standards and regex fun you can go down.
I have to wonder why/if this is even necessary in the context of email validation. If the email address is fucked, then the user will not get validated. If they want to gain access, they'll need to supply a working address. Sort of a self-solving problem right?