- Home /
Login System using SQL with Registration on a Website
I am trying to write a login system that will allow the player to login while in game BUT can only register an account on a webpage using an SQL Database. I have my SQL Table that when registered it will save the Players UserID, Real Name Username, and Password. I wrote found some scripts thinking I could edit them a little to suit my liking but cant decide how to do so. Can someone help me out with this?
You should probably provide some code if you actually want useful feedback... It would also be a good idea to explain what kind of login system you are trying to implement. Is the game an online game?
On a side note, you aren't actually sending raw SQL code from the Unity player to your server or something, are you...? If you don't take "appropriate actions" to secure user data you could find yourself in lots of legal troubles down the line!
Also; never save the users password. Save a strong hash of it.
To start with check this wiki page on how to save a high score to server http://wiki.unity3d.com/index.php?title=Server_Side_Highscores.
Are you having trouble with the server or client side? Unity's WWW class makes it pretty easy to send up GET and POST requests, with handy coroutines that can notify you when they're done. On the server side, this sounds pretty simple if you're familiar with the technologies involved. The bad news is that there's a lot to learn; the good news is that there are tutorials and guides out there for almost all of it.
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
How to create a login system online? 1 Answer
Major Account Issue 0 Answers
How can you make an inventory and crafting system? 0 Answers
Detect Linux OS 1 Answer