mirror of
https://github.com/Dvorinka/excalidraw-full.git
synced 2026-07-29 07:33:47 +00:00
更新 README 文件中的密码哈希生成命令,修正 .env 文件中 ADMIN_PASSWORD_HASH 的更新方式,确保密码哈希被正确引用。此更改提高了文档的准确性和可用性。
This commit is contained in:
committed by
Yuzhong Zhang
parent
5ce2d8604d
commit
e218aeb6b3
@@ -74,7 +74,7 @@ Change your password in `.env` file.
|
||||
# Generate the password hash
|
||||
echo YOUR_NEW_PASSWORD | htpasswd -BinC 10 admin | cut -d: -f2 > .htpasswd
|
||||
# Update your .env file
|
||||
sed -i 's/ADMIN_PASSWORD_HASH=.*/ADMIN_PASSWORD_HASH=$(cat .htpasswd)/' .env
|
||||
sed -i "s|ADMIN_PASSWORD_HASH=.*|ADMIN_PASSWORD_HASH='$(cat .htpasswd)'|" .env
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
Reference in New Issue
Block a user