5 ms·
just don't validate names or email addresses
by PunchTornado 9y ago
just don't validate names or email addresses
- amelius 9y agoYes, what is the point of validating them? You don't know if they work anyway, until you successfully send email.
- detaro 9y agoWhy go to the point of trying to send an e-mail, have the user wait for a confirmation e-mail, ask for it again, wait again and then at some point find their mistake if you could have immediately prompted them fix their mistake as they put in user@gmailcom? Validation doesn't have to catch every mistake to be useful.
- amelius 9y agoOk, but then a very simple approach would do just fine, where you show a warning (instead of blocking the user).
- gnud 9y agoI feel like trying to resolve the MX record for the domain could solve this. You can't send the validation email anyway, unless the domain resolved. But to do that, you actually have to (partly) parse the address...
- hmhrex 9y agoIn all seriousness though, wouldn't sending a validation email that has them click a link suffice?
- username223 9y ago> just don't validate names just don\\'t validate names. Do you have an apostrophe in your name? Then you're hosed, and you get to spend some time figuring out the details.
- EADGBE 9y agolast Name Null - https://www.wired.com/2015/11/null/ https://www.wired.com/2015/11/null/
- Reedx 9y agoWouldn't that be nice. But then how do you propose dealing with trolls in games or community sites?
- ashelmire 9y agoYou can allow basically anything as an email address (exactly one @ symbol, text ahead and after, with at least one . after, something like /^([^@]+@[^@]+\.[^@]+)$/), and still verify that the user is human (captcha or something) and verify the email address (send signup email).