feature: remember if someone has logged in and default to a login screen

fix: some includes needed updating
feature: some more overrides
This commit is contained in:
Andy Burke 2026-01-30 18:39:03 -08:00
parent ebf0e4428e
commit 7b3494cc32
12 changed files with 90 additions and 55 deletions

View file

@ -5,10 +5,13 @@ const api = {
...__options,
};
// FIXME: this will break with different server settings
// TODO: we need the cookie names here to match any configured on the server
const session_id = (document.cookie.match(
/^(?:.*;)?\s*session_id\s*=\s*([^;]+)(?:.*)?$/,
) || [, null])[1];
// FIXME: this will break with different server settings
// TODO: this wasn't really intended to be persisted in a cookie
const session_secret = (document.cookie.match(
/^(?:.*;)?\s*session_secret\s*=\s*([^;]+)(?:.*)?$/,