From dd4036bb7a8fe2fbf258b0fd5306af1707f5e2f8 Mon Sep 17 00:00:00 2001 From: mallasorte12 Date: Mon, 28 Feb 2022 22:48:25 +0100 Subject: [PATCH] id-init-not-working --- AleghireDBmodel.mwb | Bin 7476 -> 8667 bytes AleghireDBmodel.mwb.bak | Bin 0 -> 7476 bytes package.json | 2 +- src/server.js => server.js | 68 +++++++++++++++++++++++++++++++++---- 4 files changed, 62 insertions(+), 8 deletions(-) create mode 100644 AleghireDBmodel.mwb.bak rename src/server.js => server.js (50%) diff --git a/AleghireDBmodel.mwb b/AleghireDBmodel.mwb index 3b62cda614b5d385f9e19e58d10fdab2dc457f4c..84cf6c27896546bc3be38aea8321c693ad5d78d1 100644 GIT binary patch delta 8548 zcmZu%RZ!J|v!=Tnkw&^fLK+UC(v5V72as-lNOvP8AT2E%y7K_iozg80hd9*r&i~$- z`*8PVXZG8D+SzZm>ff!%0qP%-QAiLF5HJu(>h-ntuuRI^s1Oi107L|We^x7JOAkkD zCwFc~FAHvONAO92f!nr7-RZ+4R>au~s9VKi5Y(hbfU?xIHS2kDBDb&k7bl6sS_OqRdaDlpTG;cDRpE|l{^#ec`xYd(A8jp5t&i5siJDj$v3#$e9-XQ$OK>no6#;TRrdiI2|XYrAq1 zqU+4zJm>ej>*M2rPg%;};NUq<+Q+h)%SW&V*+@MK#L9tY&FQDnPuR!tiMmbaePuW= zmIaO-h@_i7JqXbHfFS46pAl__u_;k@tx#%8Hgf2^zb3rL2=EdW1Oj4s%=aQ6Q-%jx zrAVpF2`orZXwD-q5fr{7M9E?>(W5{qWE0M8EVZA)Gbr16;HOPjZx2a#No{Z219H;` z_RDc$kDOedM>K@geJ7y2 z6(;(`O6f8DdF&AN_>>=gG!mJ*As!dpY@G)dPp9?)GeKSo=iF;oKK8l?S2q=a-CFJ# z^e^z~;!EKDUmloL^UHn;_-1#~0^Y$YRhd^~;w>gHYAR$f*7dAOXj-#;vT*vhFrp#O z`m$%}1XxgB4^+09D>tp}csdSjzQJppa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eN(AJNxy5MHCq=*VW+hMOAG1?J z+2`0vhYE?<_S*UB4#zF;Z127ar6%s`QzzPzBK$_-Af5LV2PsyOK-OWxpSyLi^oht$ z(lK(`h;-;3=Mu`UEvCC7iQyzv;G+0!6IzeGRdHIi_#dhDKU4C*K=Gf7{|yoUqe%Lv_zz&HD { + const username = req.body.username; + + console.log("Attempting to get ID."); + db.query("SELECT * FROM User WHERE username = ?", [username], (err, result) => { + if (err) { + console.log("There was an error"); + } + if (result.length < 1) { + console.log("Cant find the ID with this username: " + username); + res.send({message: "ID with username of " + username + " was not found."}); + } else { + console.log("Successfully found ID."); + res.send({result: result}); + } + }); +}); + app.post("/check-register", (req, res) => { const username = req.body.username; const email = req.body.email; console.log("Checking the availability of the credentials:\nusername=" + username + "\nemail=" + email); - db.query("SELECT * FROM users WHERE username = ? OR email = ?", + db.query("SELECT * FROM User WHERE username = ? OR email = ?", [username, email], (err, result) => { if (err) { @@ -36,7 +55,7 @@ app.post("/check-register", (req, res) => { } if (result.length > 0) { res.send({message: "User with this credentials already exists."}); - console.log("User with this credentials already exists."); + return; } console.log("The credentials are available.") res.send({message: 1}); @@ -49,7 +68,7 @@ app.post("/register", (req, res) => { const password = req.body.password; const email = req.body.email; - db.query("INSERT INTO users (username, password, email) VALUES (?, ?, ?)", + db.query("INSERT INTO User (username, password, email) VALUES (?, ?, ?)", [username, password, email], (err) => { if (err) { @@ -67,7 +86,7 @@ app.post('/login', (req, res) => { console.log("Attempting to log in with: \nusername=" + username + "\npassword" + password); - db.query("SELECT * FROM users WHERE username = ? AND password = ?", + db.query("SELECT * FROM User WHERE username = ? AND password = ?", [username, password], (err, result) => { if (err) { @@ -76,7 +95,7 @@ app.post('/login', (req, res) => { } if (result.length > 0) { res.send({message: 1}); - console.log("Successfuly logged in."); + console.log("Successfully logged in."); } else { res.send({message: "No user found"}); console.log("No user found."); @@ -85,4 +104,39 @@ app.post('/login', (req, res) => { ); }); -app.listen(3001, () => console.log("Server started on port: " + 3001)); \ No newline at end of file +app.post("/init-user", (req, res) => { + console.log("Initializing user stats."); + + const id = req.id; + const name = req.body.name; + const level = req.body.level; + const exp = req.body.exp; + const strength = req.body.strength; + const stamina = req.body.stamina; + const dexterity = req.body.dexterity; + const intelligence = req.body.intelligence; + const luck = req.body.luck; + const money = req.body.money; + + const class_ = req.body.class; + const pfp = req.body.pfp; + const religion = req.body.religion; + const guild = "None"; + + + console.log("ID: " + id); + db.query("INSERT INTO UserStats" + + " (level, exp, religion, strength, stamina, dexterity, intelligence, luck, User_id, money)" + + " VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", + [level, exp, religion, strength, stamina, dexterity, intelligence, luck, id, money]), + (err) => { + if (err) { + console.log(err); + res.send({err: err}); + } else { + res.send({message: 1}) + } + } +}); + +app.listen(PORT, () => console.log("Server started on port: " + PORT)); \ No newline at end of file