Hotfix
This commit is contained in:
+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() * Number.MAX_SAFE_INTEGER);
|
let rand = Math.floor(Math.random() * 2000000000);
|
||||||
|
|
||||||
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