Author |
Message |
testy1
Involved
![Involved Involved](modules/Forums/images/ranks/4stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Apr 06, 2008
Posts: 484
|
Posted:
Tue Apr 07, 2009 6:15 pm |
|
"A friend" found this out the hard way
upon a fresh install and I assume on new user registrations if you accidentally hit the space bar before entering your user name it inserts in the database with the space intact, therefore costing you hours trying to figure out why you cant log in
Can we use a trim function to make sure there is no whitespace anywhere, ever ![Razz](modules/Forums/images/smiles/icon_razz.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
Site Admin
![](modules/Forums/images/avatars/Dilbert/Dilbert_-_Dogbert_King.gif)
Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania
|
Posted:
Tue Apr 07, 2009 7:41 pm |
|
You should get this error when registering with a whitespace
Code:
There cannot be any spaces in the nickname< br /> There cannot be any spaces in the nickname< br />
|
Obviously the BR tags shouldn't be showing, but I'll take care of that.
You can try it at www.ravennuke.com |
_________________ "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
testy1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Apr 07, 2009 9:18 pm |
|
ok must be the admin page only then, If you create a new admin via the create first function it does it.
Could also change RNYA so that you only recieve that message if the space is in between alpha numerics i.e spaces at beginning and end would be removed via trim |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
fkelly
Former Moderator in Good Standing
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY
|
Posted:
Wed Apr 08, 2009 6:42 am |
|
Actually what I am seeing if you go to register a new user is that the javascript kicks in as soon as you type a space saying for instance: dog bo has already been registered, is blocked or contains invalid characters" This is through the normal (non-admin) registration screen. If you go to add the new user administratively then you get the There cannot be any spaces in the nickname message.
Incidentally, does anyone know why we don't allow spaces in the nickname? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Susann
Moderator
![](modules/Forums/images/avatars/4e3210db4efb891870d79.gif)
Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support
|
Posted:
Wed Apr 08, 2009 8:20 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Fri Apr 10, 2009 6:13 am |
|
I have verified the code in setup.php and it is not applying the same criteria for valid admin as what is being checked upon login. We will get this fixed. Thanks for bringing this up. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|