News for hackers. Stuff that matters.
Re:Some problems with 'first name' and 'last name' fields in... by hunter2_ on Saturday August 12, 2023 @07:53PM (#37105262)
Speaking of email validation, recently I've come across email inputs that reject addresses that would definitely match even the most restrictive pattern you can imagine (Latin letters and Arabic numerals @gmail.com) but which I created by mashing my keyboard or just made up using my imagination and extremely common (in the USA) names. For example, in the captive portal for Starbucks WiFi, it rejects things like "iebfisldndu38256" or "jennsmith122499" suffixed with "@gmail.com".

Now, I'll admit: it actually did thwart my attempt at not providing my actual email address, for a good several attempts. I had to increase my creativity to a level I truly didn't anticipate, before finding something it accepted. And I definitely had enough randomness that it wasn't just disguising an "already exists" error with an "invalid address" error for privacy purposes, I am certain.

What in the world kind of validation is this? Do people really end up resorting to entering their actual email address often enough to make this at all useful?

Re:Some problems with 'first name' and 'last name' fields in... by constantly on Saturday August 12, 2023 @08:45PM (#37105532)
This isn’t about validation. They check to see if it is a real email address.
Re:Some problems with 'first name' and 'last name' fields in... by dbcurtis on Saturday August 12, 2023 @08:59PM (#37105609)
which is what mailinator is for
Re:Some problems with 'first name' and 'last name' fields in... by hunter2_ on Saturday August 12, 2023 @10:31PM (#37106116)
Ah, interesting. I wonder why everyone doesn't do that instead of poor attempts at validation.