asxpio/lib
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_auth.rb admin: user accounts and session login 2026-10-10 08:25:46 +04:00
bingo.rb bingo: planned status and capacity type 2026-10-10 06:59:04 +04:00
bingo_admin.rb bingo: planned status and capacity type 2026-10-10 06:59:04 +04:00
crypto_asset.rb invoices: multi-crypto payment support 2026-07-03 02:01:57 +04:00
crypto_qr.rb invoices: multi-crypto payment support 2026-07-03 02:01:57 +04:00
crypto_rate.rb invoices: multi-crypto payment support 2026-07-03 02:01:57 +04:00
db.rb db: connection helper and invoices migration 2026-05-26 17:43:18 +03:00
fmt.rb invoices: multi-crypto payment support 2026-07-03 02:01:57 +04:00
gel_rate.rb nbg and auto fill GEL exchange rate 2026-06-08 19:29:25 +03:00
invoice.rb invoices: multi-crypto payment support 2026-07-03 02:01:57 +04:00
invoice_pdf.rb invoices: em-dash cleanup in admin form and PDF copy 2026-07-16 20:01:26 +04:00
mailer.rb useful icon and links 2026-05-05 00:57:11 +04:00
rate_limit.rb rate limit: prune stale keys so @hits cannot grow unbounded 2026-07-02 17:31:19 +04:00
s3.rb bingo: fix photo rebuild on UTF-8 tagged S3 bodies 2026-10-10 06:32:06 +04:00
user.rb admin: user accounts and session login 2026-10-10 08:25:46 +04:00