From 32ca13816c4e50a82777b7c7c83ad0f0b7da0548 Mon Sep 17 00:00:00 2001 From: Galexion Date: Thu, 16 Feb 2023 20:43:12 -0500 Subject: [PATCH] Hotfix: AimeID was not being saved, and its required for some things. --- routes/api.js | 4 ++++ views/index.ejs | 1 + views/user.ejs | 1 + 3 files changed, 6 insertions(+) diff --git a/routes/api.js b/routes/api.js index 03190fb..dcda5d5 100644 --- a/routes/api.js +++ b/routes/api.js @@ -27,4 +27,8 @@ let db = new sqlite3.Database('A:\\db.sqlite'); }); }); + router.post('/getUserData/', function (req,res,next) { + + }) + module.exports = router; \ No newline at end of file diff --git a/views/index.ejs b/views/index.ejs index 52e4714..957ac0b 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -49,6 +49,7 @@ // Save data to local storage localStorage.setItem('ext_id', data.data.ext_id); localStorage.setItem('luid', data.data.luid); + localStorage.setItem('aimeid', data.data.id); window.location = "/user"; }) .catch(error => console.error(error)); diff --git a/views/user.ejs b/views/user.ejs index 7fe1a55..264dd09 100644 --- a/views/user.ejs +++ b/views/user.ejs @@ -17,6 +17,7 @@ clearStorageBtn.addEventListener('click', () => { localStorage.removeItem('ext_id'); localStorage.removeItem('luid'); + localStorage.removeItem('aimeid'); console.log('Local storage cleared.'); window.location = "/"; });