Commit graph

1 commit

Author SHA1 Message Date
Claude
ea03355743
Add manage.py CLI for password reset and database wipe
Two commands, run from the server terminal:

  python manage.py reset-admin
    Interactively select an admin account and set a new password.
    The app does not need to be stopped first (SQLite WAL handles
    concurrent access safely). Existing sessions remain valid until
    they expire (8 h); restart the app to invalidate them immediately.

  python manage.py reset-db
    Deletes clubledger.db plus any -wal/-shm sidecar files.
    Requires the app to be stopped first. After restart the app
    recreates a fresh database with the default admin/admin account.
    Asks the user to type RESET to confirm before deleting anything.

https://claude.ai/code/session_01JuRTR5Xjx8emQsyerBgGU7
2026-05-30 17:02:40 +00:00