This topic is locked

Username and Password Case Sensitivity

4/13/2010 7:06:42 PM
ASPRunnerPro General questions
F
funklet author

Hi,
Please can you advise the best way to allow usernames and passwords to be case insensitive.
Up to now I have been studying the include/login.asp and altering it accordingly, each time I upgrade ASPRunner I have to study the file again and make edits.
I have included the following code in the login.asp event:



username = UCase(username)

password = UCase(password)


Unfortunately this code does not work.

It does seem to change the username and password on the page but only after the login has failed due to incorrect case.
Ideally it would be easiest to have the option on the Security Sections...
Please can someone advise...

Sergey Kornilov admin 4/15/2010

The best way is to implement your own login code and put it to BeforeLogin event.
If you are only looking for a way to convert username and password to upper case use the following in BeforeLogin event:

sUsername= UCase(sUsername)

sPassword= UCase(sPassword)