Skip to content

feat: add scripts/reset-password.sh for Docker installs - #535

Open
shashankrawlani wants to merge 1 commit into
tashfeenahmed:mainfrom
shashankrawlani:feature/reset-password-script
Open

feat: add scripts/reset-password.sh for Docker installs#535
shashankrawlani wants to merge 1 commit into
tashfeenahmed:mainfrom
shashankrawlani:feature/reset-password-script

Conversation

@shashankrawlani

Copy link
Copy Markdown

Adds a shell script to reset the dashboard email/password when the operator is locked out.
Uses docker exec + the Node runtime already present in the container and better-sqlite3 — no sqlite3 binary or other host tools required.

  • scripts/reset-password.sh —
    interactive and flag-driven modes (-p / --password, -e / --email)
    validates length and email format
    passes credentials via docker exec -e to keep them out of ps aux
    invalidates all sessions on success
    auto-detects the container name from the Compose project directory
    overridable via FREELLMAPI_CONTAINER and FREELLMAPI_DB_PATH env vars.

  • docker/README.md —
    adds a "Resetting the dashboard password" section with usage examples.

Adds a shell script to reset the dashboard email/password when the
operator is locked out.  Uses docker exec + the Node runtime already
present in the container and better-sqlite3 — no sqlite3 binary or
other host tools required.

- scripts/reset-password.sh  — interactive and flag-driven modes
  (-p / --password, -e / --email); validates length and email format;
  passes credentials via docker exec -e to keep them out of ps aux;
  invalidates all sessions on success; auto-detects the container name
  from the Compose project directory; overridable via
  FREELLMAPI_CONTAINER and FREELLMAPI_DB_PATH env vars.
- docker/README.md — adds a "Resetting the dashboard password" section
  with usage examples.
@shashankrawlani

Copy link
Copy Markdown
Author

Hi @tashfeenahmed

This PR does not changes or conflicts with existing project, just gives a way to reset the credentials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant