PDA

View Full Version : Illegal user names, how to add directly to database?


Dan49
09-27-2013, 04:12 AM
I'm trying to make two empty spaces an illegal user name. Adding two spaces in vb options - user registration options - illegal user names field, doesn't hold. Is there a way to add it directly to the database? Thanks.

tbworld
09-27-2013, 04:46 AM
Although I do not use vb3, I would handle this by altering the regular expression for usernames in the admincp. Post the regular expression you are using now and I will alter it to handle your two empty spaces.

See vB3 options -> User Registration Options -> Username Regular Expression

Dan49
09-27-2013, 11:52 AM
Thanks tbworld.

This is what I'm using now ^[A-Za-z0-9 ]+$

I searched a lot online and tried many variations that claim to eliminate consecutive spaces, but none worked.