Why do many websites not allow usernames to begin with numbers? Passwords are not allowed to start and end with spaces? Is this a technical reason? ?

PHP中文网
Release: 2016-08-22 11:45:35
Original
3283 people have browsed it


I think this is completely unnecessary.

Reply content:

I think this is completely unnecessary.


The reason why you don’t use spaces at the beginning and end is probably to avoid mistyping


How do you distinguish between full-width spaces and half-width spaces?


It is difficult to verify the number of spaces


Generally, spaces at the beginning and end will be filtered out.


When your service supports Mobile phone number login, you will know why


conflicts with UID. Generally, you can see some user information by entering the UID in the address bar. If the username is also all numeric, the system does not know whether it is the username or UID. Back-end logic processing is also relatively troublesome.

The above is why many website usernames do not allow numbers to begin with? Passwords are not allowed to start and end with spaces? Is this a technical reason? ? For more related content, please pay attention to the PHP Chinese website (www.php.cn)!


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template