📜 ⬆️ ⬇️

Login Name Restrictions

Good day. In this article I would like to talk about the restrictions that are set in the services for logins.

Creating the next service, I proceed from the following considerations:
1. Login should not be too short (I now have from 3 characters inclusive, for larger systems, such as GMail, it is used from 6).
2. Login should not be too long , otherwise in some interface it will start to burst something incorrectly. I use logins up to 20 characters, but it is interesting to hear your opinions on this.
3. Login can be used in the address bar, when integrating with SMS and so on. Therefore, we leave only Latin characters, numbers, underscore, hyphen and period.
3a If a login can be used as a subdomain name , then these conditions are reduced to Latin characters, numbers and a hyphen (the hyphen cannot be the first and last, it cannot be repeated).
4. Sometimes it is very convenient to use double navigation: by login and ID. For example, we use the same domain.com/users/ <login> address for users with a login and domain.com/users/ <id> for those who do not have a login (so-called virtual profiles that are registered by the administration or other users). This leads to the fact that the login can not consist only of numbers , so as not to confuse it with the identifier.
5. Exception words : www, mail, ns1, ns2, ns3, ns4, admin, god, moderator, editor. The first 6 are exceptions for compatibility with subdomains. And which exception words do you use?

And the main question to readers: what restrictions are you, and what have I forgotten?

')

Source: https://habr.com/ru/post/40618/


All Articles