add: service edit date + browser session ids

This commit is contained in:
trisua 2025-07-11 18:56:49 -04:00
parent 9aee80493f
commit cfcc2358f4
17 changed files with 148 additions and 29 deletions

View file

@ -70,6 +70,16 @@ pub struct User {
/// used an invite code.
#[serde(default)]
pub was_purchased: bool,
/// This value is updated for every **new** littleweb browser session.
///
/// This means the user can only have one of these sessions open at once
/// (unless this token is stored somewhere with a way to say we already have one,
/// but this does not happen yet).
///
/// Without this token, the user can still use the browser, they just cannot
/// view pages which require authentication (all `$` routes).
#[serde(default)]
pub browser_session: String,
}
pub type UserConnections =
@ -357,6 +367,7 @@ impl User {
achievements: Vec::new(),
awaiting_purchase: false,
was_purchased: false,
browser_session: String::new(),
}
}