Login Form for program

This is a discussion on Login Form for program within the C++ Programming forums, part of the General Programming Boards category; OK, so i'm making a program, which is compatible with my website and my website only. I made a website ...

  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    34

    Login Form for program

    OK, so i'm making a program, which is compatible with my website and my website only.

    I made a website which allows the user to create a acount

    Example, account: myacount, password: mypassword

    OK now how do i make it, that when they download my program they need to put their account and password in the program to enter it??

    please help me! Thanks

    - Houssen

  2. #2
    Beginner in C++
    Join Date
    Dec 2007
    Posts
    34
    Is this only going to be used in your website, or in other programs? If it's for a website then HTML/PHP would be a better idea...
    Ubuntu Linux / Vista Home Premium (for games)
    SCiTE text editor, G++ compiler

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    34
    Well it is like this.

    Website
    |
    -------------------------
    | |
    Login Account Program
    |
    Use website login acount


    any idea how to do that?

    when you open the program
    you are ask to login, the only way to
    login is to use your login account from the website.

    please help me thanks.

  4. #4
    A10
    A10 is offline
    Registered User
    Join Date
    Nov 2006
    Posts
    85
    Well the basic idea (assuming that this is a c++ program that the user will be downloading) is this:

    On your server you'll have a server listening for incomming connections (probably on port other then port 80 in case the server you code is blocking). It will wait for a specific request from your client program such as a password validation request. On the server you will have a file (probably newline delimited) that will store the plaintext username another different delimeter character (maybe a comma?) and then the hash of the password (google md5 or any other hash algorithms).

    Your client program will simply connect to the server (on that specific port) and send the plain text username, a delimeter (like that comma), and the PLAIN TEXT password. The server will hash the password and compair the pair with the data in it's file. If there's a match then the user will be permitted to use that programs functionality.

    The if you deside to have the server program on a port that might be used by other programs then the server program needs to be nonblocking.

    I think that's what you were asking for.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Calling datas from another form?
    By Aga^^ in forum C# Programming
    Replies: 2
    Last Post: 02-06-2009, 01:17 AM
  2. Login Form
    By Aga^^ in forum C# Programming
    Replies: 16
    Last Post: 02-04-2009, 07:33 AM
  3. Accessing main form from functions in other classes
    By pj_martins in forum C++ Programming
    Replies: 1
    Last Post: 11-05-2004, 08:27 AM
  4. My UserControls dissapear off my form
    By zMan in forum C# Programming
    Replies: 2
    Last Post: 09-15-2004, 08:55 AM
  5. Making an MFC form to suit
    By TJJ in forum Windows Programming
    Replies: 1
    Last Post: 04-17-2004, 11:20 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21