forked from andyburke/autonomous.contact
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:
parent
ebf0e4428e
commit
7b3494cc32
12 changed files with 90 additions and 55 deletions
|
|
@ -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*([^;]+)(?:.*)?$/,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue