asp:Login Problem

Last post 05-17-2009 7:01 AM by anup1252000. 3 replies.

Sort Posts:

  • asp:Login Problem

    05-16-2009, 2:53 PM
    • Member
      2 point Member
    • asifakhtar
    • Member since 01-20-2009, 12:35 AM
    • Posts 34
    Hello,

    I am making a web site with master page in C#. I used membership, Roles and Profile.
     I am using asp:Login, when I log in it doesn’t match the exact UserName in my database and lets me in the application for example the UserName in my database is “Admin” but it aslo logs me in if I enter “admin” or “adMIN or “AdMin”. How can I fix this that whatever value I have in the database it should exactly match the value for example if I have “Admin” in my database, the application should only let me in if I enter “Admin” in the asp:Login

     

  • Re: asp:Login Problem

    05-17-2009, 4:43 AM
    Answer
    • Participant
      881 point Participant
    • gavinharriss
    • Member since 03-05-2005, 8:07 AM
    • Posts 297

    That's pretty standard functionality for most applications...

    User names are not case sensitive, but passwords are case sensitive.

    Is there any reason you need user names to be case sensitive?

    Gavin Harriss
    Portfolio: www.gavinharriss.com
  • Re: asp:Login Problem

    05-17-2009, 5:07 AM
    • Member
      2 point Member
    • ChuckHL
    • Member since 04-27-2009, 5:33 AM
    • Posts 5

    All I can think of that may be causing this is that your users table defined on your database has the collation to something like SQL_Latin1_general_ci_as which is case insensitive accent sensitive. If you want to make username casing matter, you will need to modify the proper table and make the collation for that specific column (or maybe the whole table depending on what you prefer) be something like SQL_Latin1_general_cs_as (cs = case sensitive, as = accent sensitive).

    Hope this points you on the direction you are aiming for.

  • Re: asp:Login Problem

    05-17-2009, 7:01 AM
    Answer
    • Contributor
      2,750 point Contributor
    • anup1252000
    • Member since 11-12-2008, 8:26 AM
    • india
    • Posts 554

     

    Usename is always case sensitive.. dont worry abt that.. Its a standard functionality..
    Remember to click “Mark as Answer” on the post, if it helps you. Because It helps others to find the solution.

    Anup Hosur
    HP
    http://anup-anuphosur.blogspot.com/


Page 1 of 1 (4 items)