mirror of
https://github.com/TheGreyDiamond/elevatormapRewritten.git
synced 2025-12-16 15:00:46 +01:00
Fixed an issues with account creation. How did this ever work?
This commit is contained in:
4
index.js
4
index.js
@@ -558,7 +558,7 @@ app.post("/register", function (req, res) {
|
||||
var token = buffer.toString("hex");
|
||||
con.query(
|
||||
stmt,
|
||||
[req.body.email, req.body.username, token],
|
||||
[req.body.email, req.body.username, hash],
|
||||
(err, results1, fields) => {
|
||||
if (err) {
|
||||
res.send(
|
||||
@@ -576,7 +576,7 @@ app.post("/register", function (req, res) {
|
||||
// Create mail verification
|
||||
con.query(
|
||||
stmt2,
|
||||
[req.body.email, results1.insertId, hash],
|
||||
[req.body.email, results1.insertId, token],
|
||||
(err, results, fields) => {
|
||||
if (err) {
|
||||
res.send(
|
||||
|
||||
Reference in New Issue
Block a user