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
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...
Well it is like this.
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.
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.