Nikolay_888 Posted August 5, 2015 Share Posted August 5, 2015 Hello. I create a registration system. In GUI player 1) read rules 2) choose skin 3) set password 4) confirm email. Then this data add to database (mysql). Where to store password when player enter it in GUI? My versions: 1) setElementData clientside 2) triggerServerEvent to setElementData serverside 3) store in variable clientside 4) create a second database to store accounts, that not finished registration, and 4.1) if registration finished, copy data to main db, delete row in second db 4.2) if registration not finished, delete row in second db. I'm looking for script security. Thank you Link to comment
manve1 Posted August 5, 2015 Share Posted August 5, 2015 store it using setElementData, easy to get rid off, easy to use and is not permanent only for a few minutes which won't start causing lag. (Doesn't matter which side you store it onto, I still was able to get the data from server side even though I stored onto client, but client is a lot better place to store in my opinion) Link to comment
GTX Posted August 5, 2015 Share Posted August 5, 2015 The best and secure way to store it is as variable client side and then send it with triggerServerEvent when you want to create an account. (Set variable immediately after setting the password) You can add hash if you're unsure. Why not setElementData? Because it most likely can be sniffed out by network pros. Variables can't be. (Unless you somehow share environment with other clients which is pretty stupid lol) Link to comment
Nikolay_888 Posted August 5, 2015 Author Share Posted August 5, 2015 Ok guys, thank you Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now