manif14102 Posted March 8, 2020 Share Posted March 8, 2020 (edited) Hi, I want to authorize a player only by his serial number (without username and password) and I have a question. Which option is better? 1. Take the number through getPlayerSerial and use it as a login: local serial = getPlayerSerial(source) local account = getAccount(serial, "dsfsdfdsf") if account then logIn... else account =... end 2. Or use getAccountsBySerial() local serial = getPlayerSerial(source) local account = getAccountsBySerial(serial) if #account > 1 then logIn... else account =... end something like this. What is the best way to proceed? Or maybe there is some more correct way? Thanks. Edited March 8, 2020 by manif14102 Link to comment
Addlibs Posted March 8, 2020 Share Posted March 8, 2020 (edited) https://wiki.multitheftauto.com/wiki/Serial#Notes I wouldn't recommend relying on serials as the sole authentication factor, as serials can be faked, they are not guarenteed to be unique (two players can have the same serial, it's just very unlikely). Indeed, under European privacy rules, if another user gets logged into someone else's account though serial collision, and gains the ability to view the account owner's information, you would probably be violating GDPR (I'm not a lawyer so don't quote me on that, but it definitely sounds like a violation of GDPR). Edited March 8, 2020 by MrTasty 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