📜 ⬆️ ⬇️

Do not make checks too hard.

When the user fills out a form, the script usually checks the validity of the entered data. And here users have problems if the developer made the restrictions too strict. A few examples:

1. I can not register on some sites with the address name.name lastname@gmail.com or name.name lastname+mark@gmail.com - the developers felt that the point and plus in the address can not be.

2. My girlfriend cannot register a domain for herself, as the last name, according to the developers, should not contain less than three characters.
')
3. I cannot send a person an invite to habrakhabr, because his address is x@***.mp - either one letter is not allowed as a login, or the habr developers do not know about the domain zone .mp.

No need to worry too much about the user. Give him a mistake in the end - it's better than if he can not use your services because of too tough, meaningless checks.

Think right now: maybe on your websites too strict conditions of input validation?

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


All Articles