Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ #1616 Recovery script in Docker container #1726

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

manuel-rw
Copy link
Collaborator

@manuel-rw manuel-rw commented Dec 2, 2023

πŸ€–[deprecated] Generated by Copilot at 610fdbd

This pull request adds a command-line interface to the application that allows resetting the passwords of users. It adds a cli directory with a cli.js file that defines two commands: reset-owner-password and reset-password, using the yargs package. It also adds two modules that implement the commands by generating random passwords, deleting sessions, and updating the database. It modifies the Dockerfile to copy the cli directory and install the yargs dependency.

image
image
image
image

@manuel-rw manuel-rw added the ✨ Feature A feature you'd like to be added label Dec 2, 2023
@manuel-rw manuel-rw self-assigned this Dec 2, 2023
@manuel-rw manuel-rw linked an issue Dec 2, 2023 that may be closed by this pull request
Copy link

github-actions bot commented Dec 2, 2023

Coverage Report

Status Category Percentage Covered / Total
πŸ”΅ Lines 16.45% 4469 / 27166
πŸ”΅ Statements 16.45% 4469 / 27166
πŸ”΅ Functions 6.8% 29 / 426
πŸ”΅ Branches 37.96% 123 / 324
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
cli/cli.js 0% 0% 0% 0% 1-30
cli/commands/reset-owner-password.js 0% 0% 0% 0% 1-55
cli/commands/reset-password.js 0% 0% 0% 0% 1-56
Generated in workflow #5900

@manuel-rw
Copy link
Collaborator Author

Verified on my local instance that all sessions are deleted and user can log in with the new password πŸ‘πŸš€

@SeDemal
Copy link
Collaborator

SeDemal commented Dec 4, 2023

Tested locally and on truenas, worked no problem

@manuel-rw manuel-rw merged commit fc38f7a into dev Dec 4, 2023
4 checks passed
truecharts-admin referenced this pull request in truecharts/public Dec 31, 2023
…45f163b by renovate (#16654)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/ajnart/homarr](https://togithub.com/ajnart/homarr) | patch |
`0.14.2` -> `0.14.3` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>ajnart/homarr (ghcr.io/ajnart/homarr)</summary>

### [`v0.14.3`](https://togithub.com/ajnart/homarr/releases/tag/v0.14.3)

[Compare
Source](https://togithub.com/ajnart/homarr/compare/v0.14.2...v0.14.3)

### πŸŽ†πŸŽ† Happy new Year!

Thank you for all your support in 2023 - we really appreciate it.
Homarr has been downloaded almost 4 million times with over 400'000
instances running the latest versions.
Due to the increase in traffic, we have upgraded our website at
https://homarr.dev/ significantly and moved our infrastructure to a
hosting provider.
We are looking forward to see you in 2024!

#### Better user management


![image](https://togithub.com/ajnart/homarr/assets/30572287/5bf6221b-0803-46df-8ae7-9666e6662fe6)

#### Redesigned torrent table

Thanks to [@&#8203;InterN0te](https://togithub.com/InterN0te) , our
torrent widget has received a great upgrade:

![image](https://togithub.com/ajnart/homarr/assets/30572287/1f16c5d9-448f-48f7-948e-9b9f8d75ecb4)

#### Gravatar support

Homarr now integrates seamlessly with Gravatar. Simply upload a profile
picture to Gravatar and you're good to go!


![image](https://togithub.com/ajnart/homarr/assets/30572287/f5cbd6eb-26dd-41e6-8423-39bf4d411873)

#### Updated docker integration

We've added back the Docker integration to your boards.
It's now easier to use than ever.


![image](https://togithub.com/ajnart/homarr/assets/30572287/2308915a-04ac-4504-ad10-24f70eaf9c90)

![image](https://togithub.com/ajnart/homarr/assets/30572287/401db133-2dc5-42af-aef5-cd86ed1ebd33)

#### CLI tool

Did you get locked out? Using our CLI tool, you can reset your password
to recover your Homarr instance:

![image](https://togithub.com/ajnart/homarr/assets/30572287/b8fb30cd-c7e7-4bd3-ab43-d0b5f955197f)

#### What's Changed

- Update acceptableStatusCodes.ts by
[@&#8203;jeffersonraimon](https://togithub.com/jeffersonraimon) in
[https://github.com/ajnart/homarr/pull/1709](https://togithub.com/ajnart/homarr/pull/1709)
- ✨ [#&#8203;1616](https://togithub.com/ajnart/homarr/issues/1616)
Recovery script in Docker container by
[@&#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1726](https://togithub.com/ajnart/homarr/pull/1726)
- πŸ› About page and manage user pages not translated by
[@&#8203;ajnart](https://togithub.com/ajnart) in
[https://github.com/ajnart/homarr/pull/1724](https://togithub.com/ajnart/homarr/pull/1724)
- ✨ Use gravatar with user email by
[@&#8203;Tagaishi](https://togithub.com/Tagaishi) in
[https://github.com/ajnart/homarr/pull/1688](https://togithub.com/ajnart/homarr/pull/1688)
- Switch torrents Table to MantineReactTable with filter/sort function
by [@&#8203;InterN0te](https://togithub.com/InterN0te) in
[https://github.com/ajnart/homarr/pull/1557](https://togithub.com/ajnart/homarr/pull/1557)
- ⚑️ Improve code in manage layout page by
[@&#8203;Tagaishi](https://togithub.com/Tagaishi) in
[https://github.com/ajnart/homarr/pull/1681](https://togithub.com/ajnart/homarr/pull/1681)
- Updated entityStateSchema to handle nullables by
[@&#8203;gfomichev](https://togithub.com/gfomichev) in
[https://github.com/ajnart/homarr/pull/1744](https://togithub.com/ajnart/homarr/pull/1744)
- feature/[#&#8203;1616](https://togithub.com/ajnart/homarr/issues/1616)
better user management by
[@&#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1748](https://togithub.com/ajnart/homarr/pull/1748)
- New Crowdin updates by [@&#8203;ajnart](https://togithub.com/ajnart)
in
[https://github.com/ajnart/homarr/pull/1701](https://togithub.com/ajnart/homarr/pull/1701)
- fix: umlaute in RSS by
[@&#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1755](https://togithub.com/ajnart/homarr/pull/1755)
- New Crowdin updates by [@&#8203;ajnart](https://togithub.com/ajnart)
in
[https://github.com/ajnart/homarr/pull/1761](https://togithub.com/ajnart/homarr/pull/1761)
- ⚑️ Remove location based timezone resolving by
[@&#8203;Tagaishi](https://togithub.com/Tagaishi) in
[https://github.com/ajnart/homarr/pull/1680](https://togithub.com/ajnart/homarr/pull/1680)
- Import to docker form board, Docker button on boards by
[@&#8203;ajnart](https://togithub.com/ajnart) in
[https://github.com/ajnart/homarr/pull/1714](https://togithub.com/ajnart/homarr/pull/1714)
- Update FUNDING.yml by [@&#8203;ajnart](https://togithub.com/ajnart) in
[https://github.com/ajnart/homarr/pull/1768](https://togithub.com/ajnart/homarr/pull/1768)
- πŸ”§ Configure Stale Action by
[@&#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1752](https://togithub.com/ajnart/homarr/pull/1752)
- πŸ”§ Configure greetings by
[@&#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1753](https://togithub.com/ajnart/homarr/pull/1753)
- New Crowdin updates by [@&#8203;ajnart](https://togithub.com/ajnart)
in
[https://github.com/ajnart/homarr/pull/1770](https://togithub.com/ajnart/homarr/pull/1770)
- fix: outdated config schema by
[@&#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1769](https://togithub.com/ajnart/homarr/pull/1769)
- chore: increase version in package.json by
[@&#8203;manuel-rw](https://togithub.com/manuel-rw) in
[https://github.com/ajnart/homarr/pull/1771](https://togithub.com/ajnart/homarr/pull/1771)
- Docker import fix by [@&#8203;ajnart](https://togithub.com/ajnart) in
[https://github.com/ajnart/homarr/pull/1773](https://togithub.com/ajnart/homarr/pull/1773)

#### New Contributors

- [@&#8203;jeffersonraimon](https://togithub.com/jeffersonraimon) made
their first contribution in
[https://github.com/ajnart/homarr/pull/1709](https://togithub.com/ajnart/homarr/pull/1709)
- [@&#8203;gfomichev](https://togithub.com/gfomichev) made their first
contribution in
[https://github.com/ajnart/homarr/pull/1744](https://togithub.com/ajnart/homarr/pull/1744)

**Full Changelog**:
ajnart/homarr@v0.14.2...v0.14.3

</details>

---

### Configuration

πŸ“… **Schedule**: Branch creation - "before 10pm on monday" in timezone
Europe/Amsterdam, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

β™» **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

πŸ”• **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMTUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjExNS4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature A feature you'd like to be added
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add possibility to change password
2 participants