From d380c745c9ec13b7092de75660c737bbc4fa6746 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 19 Jan 2026 11:17:30 +0000 Subject: [PATCH] fix: clear saved cid items from local storage on login failure --- js/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/main.js b/js/main.js index f863aab..77b6958 100644 --- a/js/main.js +++ b/js/main.js @@ -269,6 +269,9 @@ async function retrievePacketList() { error: function(httpObj, textStatus) { console.debug(httpObj); if (httpObj.status == 401 || httpObj.status == 404) { + // First we remove any saved cid items from local storage so the url can take precedence + localStorage.removeItem("cid.cid"); + localStorage.removeItem("cid.passcode"); $.notify("Unable to login", "error"); $("#options-panel").show(); $("#candidate-details").addClass("invalid-login");