asxpio/views
Sergei Poljanski 9bf40690e5
admin: user accounts and session login
The admin was one shared HTTP Basic login: no way to give someone
partial access, revoke one person, or tell who changed what. Add a users
table and a session login form. Passwords are scrypt hashes from Ruby's
OpenSSL, so no native gem is needed. Sessions carry a per-user version
that is bumped on password change, which logs that user out everywhere.

ADMIN_USER/ADMIN_PASSWORD now bootstrap the first superuser on an empty
table and afterwards only work while no active superuser exists, as a
recovery path that re-creates one. Until per-area permissions land,
non-superusers only reach the dashboard and their own password page.

Assisted-by: Claude:opus-5
2026-10-10 08:25:46 +04:00
..
admin admin: user accounts and session login 2026-10-10 08:25:46 +04:00
bingo bingo: planned status and capacity type 2026-10-10 06:59:04 +04:00
partials remove contact form 2026-08-04 01:25:50 +04:00
contact.erb remove contact form 2026-08-04 01:25:50 +04:00
index.erb site: multi-page structure with shared nav; rework services, keys, contact 2026-07-16 20:01:26 +04:00
invoice_public.erb invoices: multi-crypto payment support 2026-07-03 02:01:57 +04:00
keys.erb site: multi-page structure with shared nav; rework services, keys, contact 2026-07-16 20:01:26 +04:00
layout.erb layout: drop font CDNs, OG image meta, refreshed JSON-LD 2026-07-16 20:01:25 +04:00