Neopets' maxlength is 20, and they allow a-zA-Z0-9_
But now the good usernames are mostly gone.
What do you think is a good maxlength and charset?
AND
Do you think usernames should be case-sensitive? As in "derp", "Derp", "derP", "DERP", should all count as different usernames, or is there a disadvantage to doing this?
Lamborghini(09-07-2015),txtsd (09-07-2015)
specially with a capital i looking like and l depending the font you you.
txtsd (09-07-2015)
What's the application for? What are the usernames for?
Case insensitivity is a MUST! Pizza = pizza = PIZZa = pizZa
All usernames should be lowercased in the database imo.
I woud allow [a-z0-9_] characters. Maybe a hyphen (-) character
Just a petsite project that I'm building, while I learn Go and relearn SQL, that most likely will go public within the next year.
Okay, so case-insensitive. But storing as lowercase might not be the best way to go about things. Lowercasing it for any related logic makes sense though. If I stored it as lowercase, your username would be zachafer, not Zachafer. And I'm sure people can be super anal about that, especially since I get ticked off to no end when my username is unnecessarily capitalized (fucking twitch chat).
A site-wide capitalization standard is exactly what I do not want
I'm leaning towards a maxlength of 24 and possiblyDisallowing underscores will prevent the universally ugly xx_herpderp_xx style names.PHP Code:
/^[a-zA-Z][a-zA-Z0-9]*$/
Everything else is mostly alright, I think.
I like periods/hyphens more than underscores. Idk why.
I love Jess
txtsd (09-09-2015)