* WIP, still need to handle npm run reset-password
* Implement it for "npm run reset-password"
Bug fixes and change along with this commit
- Move `ssl`, `hostname`, `port` to ./server/config.js, so `reset-password` is able to read it
- Fix: FBSD is missing, no idea who dropped it.
- Fix: Frontend code should not require any backend code (./server/config.js), moved "badgeConstants" to the common util (./src/util.ts) and drop vite-common.js
* Minor
* feat(cli): Allow unattended password reset via CLI
This commit adds a way to reset the admin password via CLI without any
user interaction (unattended operation).
It adds an optional `new_password` CLI argument that, when present is
used instead of prompting the user for password and password
confirmation.
It also makes sure the user is informed the password could leak into
it's shell history (it's up to him to do some cleaning if
needed/wanted).
* Change to dash style
* Add dry-run
* Fix number password issue
---------
Co-authored-by: Louis Lam <[email protected]>