HOTFIX problem
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
Hacking Attempts
|
||||||
|
---
|
||||||
|
_11 June 2019_
|
||||||
|
|
||||||
|
A hacking attempt was witnessed, and a security hole has been patched. Please log out and log back in to fix any errors you are currently having.
|
||||||
|
|
||||||
+1
-1
@@ -216,7 +216,7 @@ const loginRequest = (connection) => (req, res) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//create the new session
|
//create the new session
|
||||||
let rand = Math.floor(Math.random() * 100000);
|
let rand = Math.floor(Math.random() * Number.MAX_SAFE_INTEGER);
|
||||||
|
|
||||||
let query = 'INSERT INTO sessions (accountId, token) VALUES (?, ?);';
|
let query = 'INSERT INTO sessions (accountId, token) VALUES (?, ?);';
|
||||||
connection.query(query, [results[0].id, rand], (err) => {
|
connection.query(query, [results[0].id, rand], (err) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user