2 ms·
I agree completely. I might do .+@.+\..+ on the frontend to catch people mixing up usernames and emails, but that's it. You might not be surprised that regex c
by iudqnolq 7y ago
I agree completely. I might do .+@.+\..+ on the frontend to catch people mixing up usernames and emails, but that's it.
You might not be surprised that regex comes from a Perl module :)
- Avamander 7y agoTo be honest, login forms should take both username and e-mail as the user identifier, far too often they don't. I personally think that the only place where such a regex should exist is during sign-up.
- iudqnolq 7y agoFair enough, although you could I suppose run into issues doing that retroactively if you allowed `@` in usernames...