Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
please is there any one who can tell me how to check case sensitive username and password as i know the code of non-case sensitive one....tell me the code and explain it also.. :doh:
Posted

1 solution

C++
how to check case sensitive username

Username fields are generally case insensitive.

C++
how to check case sensitive password

Password fields are generally case-sensitive. What is the issue here?

In either case, if you need to go other way from general, while comparing you need to take care. If you want case-insensitive passwords then convert it into toUpper or toLower and store it/compare it. Same with username.
 
Share this answer
 
Comments
shahina gupta 28-Jun-10 7:30am    
but in some sites as gmail n yahoo username is also case sesitive
wht is the code for that???
Sandeep Mewara 28-Jun-10 7:53am    
gmail & yahoo usernames are NOT case sensitive!!!
Sandeep Mewara 28-Jun-10 7:54am    
Further, if needed, i already suggested you. In case of username not case-sensitive, you just compare the usernames in DB... now add a case sensitive condition there!
shahina gupta 28-Jun-10 10:20am    
actually i don,t know about the condition .....i have searched some sites also for the code but they are quite weired one.....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900