25.09.2014, 17:02
So I have a log in system with my role-play server and today I found quite an interesting bug. Now I'm not sure exactly what is causing this bug, and that's why I'm posting this.
So basically it works like this, if I log out of my account named: Test_Test and that accounts skin is set to like 190 and say I have like 2 vehicles or something owned on that account, if I then log out and log into a completely new account and register it with a password, for some reason my skin is set to that of Test_Test's account and I am able to access Test_Test's accounts vehicles.
So basically I maintain the data from Test_Test's account when I register the new account for some reason.
I'm not quite sure what part of the code to post as it is quite a big login system, but just reply if some code is needed.
But I feel as if it's something to do with the fact that when I log out of Test_Test's account his playerid is 0 and when I log into the new registered account the playerid is also 0.
However I'm not exactly sure how to fix this, thanks for reading.
So basically it works like this, if I log out of my account named: Test_Test and that accounts skin is set to like 190 and say I have like 2 vehicles or something owned on that account, if I then log out and log into a completely new account and register it with a password, for some reason my skin is set to that of Test_Test's account and I am able to access Test_Test's accounts vehicles.
So basically I maintain the data from Test_Test's account when I register the new account for some reason.
I'm not quite sure what part of the code to post as it is quite a big login system, but just reply if some code is needed.
But I feel as if it's something to do with the fact that when I log out of Test_Test's account his playerid is 0 and when I log into the new registered account the playerid is also 0.
However I'm not exactly sure how to fix this, thanks for reading.