fix: clear saved cid items from local storage on login failure

This commit is contained in:
Ross
2026-01-19 11:17:30 +00:00
parent 9e53a54ac1
commit d380c745c9
+3
View File
@@ -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");