Congratulations to all the winners of April 2013, they have won INR 3400 cash and INR 20147 worth prizes !
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 63977 |  Welcome, Guest!   Register  Login
 Home > Forums > ASP.NET > Password authentication error in Lowercase & Uppercase Characters. ...
Sathiya_Narayanan

Password authentication error in Lowercase & Uppercase Characters.

Replies: 5 | Posted by: Sathiya_Narayanan on 7/18/2012 | Category: ASP.NET Forums | Views: 513 | Status: [Member] | Points: 10  


Hi,

I created an login application its working fine but have some errors in passwords authenticating,
in DB it contains username is 'ask' and password is 'ask', when entering this information the application is logged in.
error is when user entering his username and password as 'ask' 'ask' its logged in & if the user enters the password as "ASK"(in uppercase) also its accepting.
its not checking the uppercase and lowercase characters

if u know share your ideas how to solve this problem...





Thanks,

SATHIYANARAYANAN


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Ranjeet_8
Ranjeet_8  
Posted on: 7/18/2012 8:00:16 AM
Level: Gold | Status: [Member] | Points: 25

Sathiya_Narayanan, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

GSM_GSV
GSM_GSV  
Posted on: 7/19/2012 3:25:26 AM
Level: Starter | Status: [Member] | Points: 25

Try this

select username, password from users collate SQL_Latin1_General_Cp1_CS_AS

This will be case sensitive
or
store the hashed password in the database, not as text

---------------------------------------
Live the life you've dreamed

Regards
MADHU

Sathiya_Narayanan, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Sathiya_Narayanan
Sathiya_Narayanan  
Posted on: 7/19/2012 4:35:58 AM
Level: Starter | Status: [Member] | Points: 25

Hi please tell briefly.
Where, how to use this in storedprocedure or in cs coding..

SATHIYANARAYANAN

Sathiya_Narayanan, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

GSM_GSV
GSM_GSV  
Posted on: 7/19/2012 4:49:16 AM
Level: Starter | Status: [Member] | Points: 25

Hi,

Include "collate SQL_Latin1_General_Cp1_CS_AS" in your select statement in cs. Not stored procedure.

---------------------------------------
Live the life you've dreamed

Regards
MADHU

Sathiya_Narayanan, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Sathiya_Narayanan
Sathiya_Narayanan  
Posted on: 7/19/2012 6:29:46 AM
Level: Starter | Status: [Member] | Points: 25

I m using Stored procedure
though again I replaced to query also its not working..
showing error in sql query..

SATHIYANARAYANAN

Sathiya_Narayanan, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

Found interesting? Add this to:


 Latest Posts

Write New Post | More ...

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/20/2013 12:05:05 PM