feat: record when an account last signed in

users.last_login_at (migration 0085, no backfill) is stamped by _establish_session,
which the Google callback now shares with password login instead of repeating its
session setup inline. The demo entry does not stamp its shared account. The admin
user list carries the field.
This commit is contained in:
2026-09-16 00:34:50 +02:00
parent 4e52bdd4ca
commit 11aef4ab7a
6 changed files with 140 additions and 11 deletions
+2
View File
@@ -82,6 +82,8 @@ export interface AdminUserRow {
/** The Google account's address, ONLY when it differs from the account address (E9.5 S3). */
google_email: string | null;
created_at: string | null;
/** Last sign-in (Google or password). Null = not since 0.88 (no backfill), or the demo account. */
last_login_at: string | null;
}
/** The account panel's view of why someone can or cannot get in (E12 S5). */