Posts: 50
Threads: 5
Joined: Sep 2010
Reputation:
0
Hey guys. I made my own login/register with mysql. I was wondering the best way to make it secure. Could anyone post some ideas?
Posts: 50
Threads: 5
Joined: Sep 2010
Reputation:
0
Yea things such as loading and saving. Also thanks for the tip on Whirlpool.
Posts: 95
Threads: 9
Joined: Mar 2011
Reputation:
0
Well first of all you should probably reset player's variables, when they connect and then get player's password from the database separately. Hash the params (for command) or input (for dialog) when player logs in and check if it matches the password hash in database. If it does, load all of the data from database and store it in variables.
As for the saving, I can't figure out any "special" ways. Just get the variables and update the database. You could take a look at CleanScript(MySQL) (assuming it still exists) made by RealCop228, or any other MySQL based scripts to get some inspiration.
Posts: 50
Threads: 5
Joined: Sep 2010
Reputation:
0
Could you show me some code for when logging in. I used whirlpool and hashed the password. Then when I reconnected i had it hash that password after input. But it didn't work. Said my password was wrong.
Posts: 50
Threads: 5
Joined: Sep 2010
Reputation:
0
I will put it in and test it. Thanks man!