Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. help for Remember Password

help for Remember Password

Scheduled Pinned Locked Moved C#
csharpdatabasehelpquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nekshan
    wrote on last edited by
    #1

    I have a windows application in dotnet2.0 with sqlserver2000 database. I m new to c# language. I m making login form.I need to keep a checkbox for 'remember password'. when user cheks it firsttime,nxttime when user enters his userid to login,his password must cum automatically in textbox2. Can some1 plz help to accomplish this? U can mail me at nekshan_sweetypie@yahoo.co.in Thanking Anybody who can help in adv. Nekshan.

    Q E 2 Replies Last reply
    0
    • N Nekshan

      I have a windows application in dotnet2.0 with sqlserver2000 database. I m new to c# language. I m making login form.I need to keep a checkbox for 'remember password'. when user cheks it firsttime,nxttime when user enters his userid to login,his password must cum automatically in textbox2. Can some1 plz help to accomplish this? U can mail me at nekshan_sweetypie@yahoo.co.in Thanking Anybody who can help in adv. Nekshan.

      Q Offline
      Q Offline
      quiteSmart
      wrote on last edited by
      #2

      hi, i think the best way is to add a flag in the database or the users. this flag is set to true when the user checks the remember password. You only have to check the users record of this bit field and accordingly you either display the password or not

      E N 2 Replies Last reply
      0
      • N Nekshan

        I have a windows application in dotnet2.0 with sqlserver2000 database. I m new to c# language. I m making login form.I need to keep a checkbox for 'remember password'. when user cheks it firsttime,nxttime when user enters his userid to login,his password must cum automatically in textbox2. Can some1 plz help to accomplish this? U can mail me at nekshan_sweetypie@yahoo.co.in Thanking Anybody who can help in adv. Nekshan.

        E Offline
        E Offline
        echuck66
        wrote on last edited by
        #3

        you might want to check out the authentication features of .NET 2.0 www.asp.net has some great video tutorials on how to implement this. This is usually accomplished through the use of cookies or sessions.

        1 Reply Last reply
        0
        • Q quiteSmart

          hi, i think the best way is to add a flag in the database or the users. this flag is set to true when the user checks the remember password. You only have to check the users record of this bit field and accordingly you either display the password or not

          E Offline
          E Offline
          echuck66
          wrote on last edited by
          #4

          this is not very secure... if you put a flag in the database to check for password if not checked, then anyone who puts that user's username in will have full access. you need to identify the specific user with a user account. This is usually accomplished by using a persistent session or cookie.

          1 Reply Last reply
          0
          • Q quiteSmart

            hi, i think the best way is to add a flag in the database or the users. this flag is set to true when the user checks the remember password. You only have to check the users record of this bit field and accordingly you either display the password or not

            N Offline
            N Offline
            Nekshan
            wrote on last edited by
            #5

            Thanx QuiteSmart. Yes i have taken a 'bit' field in database for setting flag n i want to do the same thing,chk if flag is 1 n as user enters username,pswd must automatically be shown in textbox2 for login. Now what i donno is how to put a value (this chkbit,loginname & pswd)from my login form(a textbox & checkbox) into database. Plz can u help on some code for this. Thank U.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups