Subj : emailval.js accepts incomplete email addresses To : echicken From : Digital Man Date : Sat Aug 31 2024 06:39 pm Re: emailval.js accepts incomplete email addresses By: echicken to Codefenix on 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? I think it'd be more user-friendly if the script only supports Internet mail (which in this case, I think it's expected) and it rejected (with a friendly message) any invalid Internet mail addresses, just in case the user wasn't intentionally trying to fool the script, but rather just typoed or assumed a FidoNet or QWKnet address could be used (maybe they can?). I don't know, I didn't actually write the script in question. -- digital man (rob) Breaking Bad quote #48: I am not in danger, Skyler. I am the danger. - Walter White Norco, CA WX: 82.2øF, 55.0% humidity, 9 mph W wind, 0.00 inches rain/24hrs .