473,419 Members | 4,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,419 software developers and data experts.

Case sensitive username/password

I've included a list of username/password combinations in the
Web.Config file and I've a simple .aspx page with a username and
password field for the users to log in. While the password field is
automatically case sensitive, the username field is not. How can I
force the username field to be case sensitive, i.e. match exactly what
I have on the Web.config file? Do I have to use regular expressions?

thanks
Nemo

Apr 21 '06 #1
4 4702
IMO you'll have to compare yourself using a case sensitive comparison in
your login page.

I'm not sure about the goal (as this is unusual it could confuse users, if
this is for additional protection I would rather enforce a particular policy
for passwords).

--

"nemo" <pa*****@gmail.com> a écrit dans le message de news:
11**********************@t31g2000cwb.googlegroups. com...
I've included a list of username/password combinations in the
Web.Config file and I've a simple .aspx page with a username and
password field for the users to log in. While the password field is
automatically case sensitive, the username field is not. How can I
force the username field to be case sensitive, i.e. match exactly what
I have on the Web.config file? Do I have to use regular expressions?

thanks
Nemo

Apr 21 '06 #2
Thanks Patrice for your response. The problem I'm facing is as follows:
I don't want multiple users to log in with the same username. However
if I have "user" as the username and "pass" as the password in my
Web.Config file, the program I've written is allowing "user", "User" as
well as "USER" to log in with the same password "pass". But I want to
allow only "user".

thanks
Nemo

Apr 21 '06 #3
Why? do you wish to give out user, User and USER to different users as
usernames. Windows users do not expect usernames to be case sensitive, case
sensitive usernames are more of a *nix thing. What are you trying to acheive
by hacing case sensitive user names.

"nemo" wrote:
Thanks Patrice for your response. The problem I'm facing is as follows:
I don't want multiple users to log in with the same username. However
if I have "user" as the username and "pass" as the password in my
Web.Config file, the program I've written is allowing "user", "User" as
well as "USER" to log in with the same password "pass". But I want to
allow only "user".

thanks
Nemo

Apr 21 '06 #4
Thanks a lot. So I take it that if an user logs in as "user", closes
the browser window, and logs back as "USER", she will "see" her old
session, right? To asp both are the same, right?

Apr 21 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Jeff | last post by:
i have this on my signup page Set rs = Conn.Execute("SELECT * from rounds") DO WHILE NOT rs.EOF IF request.form("username") = rs.fields.item("username").value THEN ...
1
by: Joe | last post by:
Hi, I have a login script and right now it is not case sensitive. I want to make it case sensitive. The userid and password is stored in MS Access DB and not in web.config. Can someone give me...
1
by: Claire-Louise | last post by:
I have a strange occurrence on a test internal website with a control that appears at the top of every page. The website is on a test Windows 2000 Server running IIS with a domain name 'DARASD06'....
2
by: Showjumper | last post by:
How can i go about doing case sensitive passwords w/ forms auth, vbnet and asp.net 1.1? I found an msdn mag article that used cast as varbinary in the sql statement but i cant get it to work. Is...
7
by: vunet.us | last post by:
So, I came across the problem every developer comes across with once: case in SQL. My users login with their selected user name and when SQL checks for user name value, case is ignored. For...
1
by: samanthavernon | last post by:
Hi All, I'm using Windows Vista with Python 2.5. I need the code to check for case sensitive letters and digits, but something isn't right with it. The code is below: # -*- coding: cp1252 -*-...
1
nirmalsingh
by: nirmalsingh | last post by:
hai all, in a table user master i have username:Admin , password:admin and userid:1 i have to retrieve user id where username='Admin' and password:'admin' if i enter username='admin' and...
10
by: Les Desser | last post by:
In article <fcebdacd-2bd8-4d07-93a8-8b69d3452f3e@s50g2000hsb.googlegroups.com>, The Frog <Mr.Frog.to.you@googlemail.comMon, 14 Apr 2008 00:45:10 writes Thank you for that. It was very...
6
by: Derik | last post by:
Okay, I THINK this is a PHP question... I've been mucking with PHP for awhile now, but just recently I've been poking at some ajax stuff, and I ran into something confusing; my Queries were...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.