Read configuration whole, and reset the administrator's password from it
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
openchronology-migrate read the configuration with Node's --env-file, which ends an unquoted value at a #, while the server (systemd's EnvironmentFile) keeps it. An ADMIN_INITIAL_PASSWORD containing # created an administrator whose password was cut off there, so the configured password never worked. Every reader now uses server/env-file.mjs, which reads the file as systemd and Docker Compose do (# begins a comment only at the start of a line): openchronology-migrate and och-import-logs pass the file as OCH_CONFIG, the package launcher and npm start/dev load it with the same parser. openchronology-reset-admin-password (and server/reset-admin-password.mjs, for Compose and source installs) sets the ADMIN_USERNAME account's password to ADMIN_INITIAL_PASSWORD, signs out its sessions and records it. Closes #118 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/commit/37afdeb0820c85a694346e05d8acc277584822eb
Related
Open Read configuration whole, and reset the administrator's password from it in the timeline