mirror of
https://github.com/open-webui/docs
synced 2025-06-12 09:32:46 +00:00
Add password reset instructions
This commit is contained in:
parent
f029de2681
commit
7fb696c3b1
@ -86,6 +86,6 @@ Everything you need to run Open WebUI, including your data, remains within your
|
||||
|
||||
#### **Q: I tried to login and couldn't, made a new account and now I'm being told my account needs to be activated by an admin.**
|
||||
|
||||
**A:** This situation occurs when you forget the password for the initial admin account created during the first setup. The first account is automatically designated as the admin account. Creating a new account without access to the admin account will result in the need for admin activation. Avoiding the loss of the initial admin account credentials is crucial for seamless access and management of Open WebUI.
|
||||
**A:** This situation occurs when you forget the password for the initial admin account created during the first setup. The first account is automatically designated as the admin account. Creating a new account without access to the admin account will result in the need for admin activation. Avoiding the loss of the initial admin account credentials is crucial for seamless access and management of Open WebUI. See the [Resetting the Admin Password](getting-started/troubleshooting#reset-admin-password) guide for instructions on recovering the admin account.
|
||||
|
||||
#### If you have any further questions or concerns, please out our [GitHub Issues page](https://github.com/open-webui/open-webui/issues) or our [Discord channel](https://discord.gg/5rJgQTnV4s) for more help and information.
|
||||
|
@ -30,3 +30,35 @@ docker run -d --network=host -v open-webui:/app/backend/data -e OLLAMA_BASE_URL=
|
||||
- Confirm that the Ollama Server URL is correctly set to `[OLLAMA URL]` (e.g., `http://localhost:11434`).
|
||||
|
||||
By following these enhanced troubleshooting steps, connection issues should be effectively resolved. For further assistance or queries, feel free to reach out to us on our community Discord.
|
||||
|
||||
## Reset Admin Password
|
||||
|
||||
If you've forgotten your admin password, you can reset it by following these steps:
|
||||
|
||||
### Reset Admin Password in Docker
|
||||
|
||||
To reset the admin password for Open WebUI in a Docker deployment, generate a bcrypt hash of your new password and run a Docker command to update the database. Replace `your-new-password` with the desired password and execute:
|
||||
|
||||
1. **Generate bcrypt hash** (local machine):
|
||||
```bash
|
||||
htpasswd -bnBC 10 "" your-new-password | tr -d ':\n'
|
||||
```
|
||||
|
||||
2. **Update password in Docker** (replace `HASH` and `admin@example.com`):
|
||||
```bash
|
||||
docker run --rm -v open-webui:/data alpine/socat EXEC:"bash -c 'apk add sqlite && echo UPDATE auth SET password='\''HASH'\'' WHERE email='\''admin@example.com'\''; | sqlite3 /data/ollama.db'", STDIO
|
||||
```
|
||||
|
||||
### Reset Admin Password Locally
|
||||
|
||||
For local installations of Open WebUI, navigate to the `open-webui` directory and update the password in the `backend/data/webui.db` database.
|
||||
|
||||
1. **Generate bcrypt hash** (local machine):
|
||||
```bash
|
||||
htpasswd -bnBC 10 "" your-new-password | tr -d ':\n'
|
||||
```
|
||||
|
||||
2. **Update password locally** (replace `HASH` and `admin@example.com`):
|
||||
```bash
|
||||
sqlite3 backend/data/webui.db "UPDATE auth SET password='HASH' WHERE email='admin@example.com';"
|
||||
```
|
Loading…
Reference in New Issue
Block a user