mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-12-14 23:46:17 +00:00
chore: fix bcrypt issue
This commit is contained in:
@@ -6,7 +6,7 @@ trap 'stop_service' SIGTERM
|
|||||||
|
|
||||||
# Hash password with bcrypt
|
# Hash password with bcrypt
|
||||||
hash_password() {
|
hash_password() {
|
||||||
python3 -c "import bcrypt; print(bcrypt.hashpw('$1'.encode(), bcrypt.gensalt(12)).decode())"
|
${WGDASH}/src/venv/bin/python3 -c "import bcrypt; print(bcrypt.hashpw('$1'.encode(), bcrypt.gensalt(12)).decode())"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function to set or update section/key/value in the INI file
|
# Function to set or update section/key/value in the INI file
|
||||||
|
|||||||
Reference in New Issue
Block a user