Skip to content

Commit

Permalink
Fixed Account Creation
Browse files Browse the repository at this point in the history
- Now when an account is created, the perksUnlocked value is correctly setup
  • Loading branch information
umarraj008 committed Mar 27, 2022
1 parent 5ff8951 commit 35006bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Server/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ io.sockets.on("connection", function(socket) {
socket.emit("register-failed", "Account With The Same Gamertag Already Exists");
return;
} else {
db.query("INSERT INTO users(firstName, lastName, dob, email, password, gamertag, gamesWon, gamesLost, xpLevel, perksUnlocked, nextLevel, skillLevel) VALUES('"+data.firstName+"','"+data.lastName+"','"+data.DOB+"', '"+data.email+"', '"+data.password+"', '"+data.gamerTag+"', '0','0','0','0,0,0,0','1000','0')",function(error, result) {
db.query("INSERT INTO users(firstName, lastName, dob, email, password, gamertag, gamesWon, gamesLost, xpLevel, perksUnlocked, nextLevel, skillLevel) VALUES('"+data.firstName+"','"+data.lastName+"','"+data.DOB+"', '"+data.email+"', '"+data.password+"', '"+data.gamerTag+"', '0','0','0','0,0,0,0,0,0,0,0,0','1000','0')",function(error, result) {
if (error) {
socket.emit("register-failed", "Register Failed Error Code: 3");
return;
Expand Down

0 comments on commit 35006bb

Please sign in to comment.