refactor: reset admin password (#1335)

* refactor: reset-admin-password

* chore: docs
This commit is contained in:
Jason Rasmussen 2023-01-16 13:09:04 -05:00 committed by GitHub
parent 5a6a726014
commit 1e2f02613f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 100 additions and 40 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View file

@ -11,29 +11,18 @@ The `immich-server` docker image comes preinstalled with an administrative CLI (
## How to run a command
To run a command, connect to the container and then execute it by running `immich <command>`.
To run a command, [connect](/docs/guides/docker-help.md#attach-to-a-container) to the `immich_server` container and then execute the command via `immich <command>`.
## Examples
```bash title="Reset Admin Password"
docker exec -it immich_server sh
Reset Admin Password
/usr/src/app$ immich reset-admin-password
? Please choose a new password (optional) immich-is-awesome-unlike-this-password
New password:
immich-is-awesome-unlike-this-password
```
![Reset Admin Password](./img/reset-admin-password.png)
```bash title="Disable Password Login"
docker exec -it immich_server sh
Disable Password Login
/usr/src/app$ immich disable-password-login
Password login has been disabled.
```
![Disable Password Login](./img/disable-password-login.png)
```bash title="Enable Password Login"
docker exec -it immich_server sh
Enabled Password Login
/usr/src/app$ immich enable-password-login
Password login has been enabled.
```
![Enable Password Login](./img/enable-password-login.png)