|
6 | 6 |
|
7 | 7 | Download `dist.zip` from the [release](https://github.com/AstrBotDevs/AstrBot/releases) page, extract it, and move it to `AstrBot/data`. If it still doesn't work, try restarting your computer (based on community feedback). |
8 | 8 |
|
9 | | -### Forgot Dashboard Password |
| 9 | +### First Login Account and Random Password |
| 10 | + |
| 11 | +On first startup, the WebUI account is `astrbot` by default, and the default password is randomly generated (it is not a fixed hardcoded value). Check the startup logs and log in with the random initial password shown there: |
| 12 | + |
| 13 | +```text |
| 14 | +[00:27:40.590] [Core] [INFO] [dashboard.server:523]: |
| 15 | + ✨✨✨ |
| 16 | + AstrBot v4.24.3 WebUI is ready |
10 | 17 |
|
11 | | -If you forgot your AstrBot dashboard password, you can modify the `"dashboard"` field in the `AstrBot/data/cmd_config.json` configuration file, where `"username"` is your username and `"password"` is your password encrypted with MD5. |
| 18 | + ➜ Local: http://localhost:6185 |
| 19 | + ➜ Initial username: astrbot |
| 20 | + ➜ Initial password: UiYVpZxnW8k22IWqf0ru5pOy |
| 21 | + ➜ Change it after logging in |
| 22 | + ✨✨✨ |
| 23 | +Set dashboard.host in data/cmd_config.json to enable remote access. |
| 24 | +``` |
12 | 25 |
|
13 | | -To modify your account credentials, follow these steps: |
| 26 | +The random initial password may be different each first startup, so please change it as soon as possible in WebUI settings after logging in. |
| 27 | + |
| 28 | +### Forgot Dashboard Password |
14 | 29 |
|
15 | | -1. Modify the `"username"` field, keeping the `""` quotation marks. If you don't want to change the username, skip this step |
16 | | -2. Visit the website: [Online MD5 Generator](https://www.metools.info/code/c26.html) |
17 | | -3. Enter your new password in the input text box |
18 | | -4. Select MD5 encryption (32-bit), make sure to choose the 32-bit option |
19 | | -5. Paste the converted string into the configuration file, keeping the `""` quotation marks |
| 30 | +If you forgot your AstrBot dashboard password, find the `"dashboard"` field in `AstrBot/data/cmd_config.json`, for example: |
| 31 | + |
| 32 | +```json |
| 33 | + "dashboard": { |
| 34 | + "enable": true, |
| 35 | + "username": "astrbot", |
| 36 | + "password": "81e0c3dxxxxxxxxxxx78862e78", |
| 37 | + "pbkdf2_password": "pbkdf2_sha256$600000$1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", |
| 38 | + "password_storage_upgraded": true, |
| 39 | + "password_change_required": true, |
| 40 | + "jwt_secret": "5e1b0280bcxxxxxxxxxxxxxxxxf4a", |
| 41 | + "host": "127.0.0.1", |
| 42 | + "port": 6185, |
| 43 | + "disable_access_log": true, |
| 44 | + "ssl": { |
| 45 | + "enable": false, |
| 46 | + "cert_file": "", |
| 47 | + "key_file": "", |
| 48 | + "ca_certs": "" |
| 49 | + } |
| 50 | + }, |
| 51 | +``` |
| 52 | + |
| 53 | +Delete the `username`, `password`, `pbkdf2_password`, `password_storage_upgraded`, `password_change_required`, and `jwt_secret` fields (with their values), then save. |
| 54 | +The segment should look like: |
| 55 | + |
| 56 | +```json |
| 57 | + "dashboard": { |
| 58 | + "enable": true, |
| 59 | + "host": "127.0.0.1", |
| 60 | + "port": 6185, |
| 61 | + "disable_access_log": true, |
| 62 | + "ssl": { |
| 63 | + "enable": false, |
| 64 | + "cert_file": "", |
| 65 | + "key_file": "", |
| 66 | + "ca_certs": "" |
| 67 | + } |
| 68 | + }, |
| 69 | +``` |
| 70 | + |
| 71 | +After restart, AstrBot will automatically generate a random password with the fixed username `astrbot`; check the startup logs. |
20 | 72 |
|
21 | 73 | ## Bot Core Related |
22 | 74 |
|
|
0 commit comments