Tagged: Username Availability Checker
Hello, I commented out preg_match( “/[a-z0-9]+/”, $user_name, $maybe ); from line 185 on username-availability-checker.php
Is this okay? I did this because I want users to be allowed spaces in username field while registering. After they register, the space disappear and their name is one word, i.e. Tay Tay would end up TayTay.
I did this for the sake of ease and user not seeing errors while trying to register, I just let it happen and they combine on the backend after they registered i.e. Jay Won would end up JayWon.
Nonetheless, I must ask, do you think there would be any errors in commenting out preg_match( “/[a-z0-9]+/”, $user_name, $maybe ); ?
- Brajesh Singh on July 5, 2017 at 11:17 am #9771
It won’t have any effect. It only validates that the username only contain alphabet and number(Is used at another place for testing) but it will not cause any issue.
You must be logged in to reply to this topic.