HOTFIX problem

This commit is contained in:
2019-06-11 23:53:36 +10:00
parent 5808b70227
commit 2f28498e5b
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -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
View File
@@ -216,7 +216,7 @@ const loginRequest = (connection) => (req, res) => {
}
//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 (?, ?);';
connection.query(query, [results[0].id, rand], (err) => {