Phase 10, part 1: users, sessions and form tokens
Schema 32 adds users, memberships and sessions, on both databases. internal/users keeps accounts (Argon2id passwords), roles and modules, and sessions whose rows hold only a hash of the cookie's value; they end after a week unused or 30 days. On the server edition, every page but the public ones needs a session and sends others to /signin. Every edition's forms now carry a CSRF token (a cookie repeated in each form, added as pages render; htmx sends it as a header), besides the same-origin check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -42,6 +42,7 @@ type Manifest struct {
|
||||
// company's data. Secrets go in secrets.json, opened, if asked for.
|
||||
var skipped = map[string]bool{
|
||||
"instances": true, "locks": true, "schema_version": true, "schema_migrations": true, "secrets": true,
|
||||
"sessions": true,
|
||||
}
|
||||
|
||||
// startupSettings are settings a new install writes when it first starts:
|
||||
|
||||
Reference in New Issue
Block a user