When setting a blank password, use webserver.api.password instead of webserver.api.pwhash (fixed in https://github.com/pi-hole/FTL/pull/1702)

This prevents the password from being blanked out on the command line when it has been set by an environment variable
This commit is contained in:
Adam Warner 2023-10-28 17:56:37 +01:00
parent ed5d794008
commit 6292e65b37
No known key found for this signature in database

2
pihole
View file

@ -43,7 +43,7 @@ SetWebPassword() {
echo ""
if [ "${PASSWORD}" == "" ]; then
setFTLConfigValue "webserver.api.pwhash" "" >/dev/null
setFTLConfigValue "webserver.api.password" "" >/dev/null
echo -e " ${TICK} Password Removed"
exit 0
fi