Allowing spaces in CF Login

Discussion in 'Programming' started by RedDem0n, Mar 26, 2010.

  1. #1
    Is it possible to allow spaces whenever someone tries to login to a coldfusion login page?

    I've seen this done on gmail, but I'm not sure what allowing it would entail.
     
    RedDem0n, Mar 26, 2010 IP
  2. RedDem0n

    RedDem0n Peon

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Let me rephrase so it is a little clear.

    I'm on a coldfusion server and one of the biggest issues with login problems with clients is that, when they copy and paste login information down, they copy spaces with it too. Then a lot of time gets wasted trying to figure out why they can't login.

    So I thought about allowing whitespace characters with login so this issue would be resolved once and for all. I checked some major sites and they do not accept it, but google seems to accept whitespace characters.

    Does anyone see any security issue to this?

    If not, how do you think I should code the TRIM value for the username/password in the form login, so that before the page hits the database to check for a match on the username/password, it would remove the whitespace characters the person would enter.

    As far as what I need accomplished, basically the ability to accept spaces entered before or after the username and password.
     
    RedDem0n, Apr 2, 2010 IP