![]() |
Prohibit double spaces in username.
Does anyone know how I could stop users from registering with two or more spaces next to each other in their username?
|
I suggest not allowing any spaces at all.
|
Quote:
|
What version do you have? I find when I test the latest vb3 version (3.8.7PL2) that although the registration page allows me to enter a username with multiple consecutive spaces, they are removed (condensed to one space) when the user is created. But a while back there was an issue where usernames could be duplicated by including some sort of non-printable characters, and there was a regular expression that was given as a work-around. I don't know if 3.8.7PL2 fixes that in some other way or not.
|
I used ^[A-Za-z0-9 ]+$. I tried adding [^( )], but it didn't work. We're using 3.8.7, let me check the double spaces shrinking thing now.
Edit: My gosh! You're right, it condenses double spaces. :o |
All times are GMT. The time now is 10:22 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|