Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Validating email addresses via anything but verification links are a road to hell.


True, but it's not a bad idea to check for an @ in the string as a sanity check, in case the user has accidentally put their username/password/other in the field.


Why? Just restrict your validation in the UI to a warning.

For email addresses, most deviations from a simple pattern are mistakes.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: