From 6292e65b376ce1d5ad350da2a0b951fc1480f744 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Sat, 28 Oct 2023 17:56:37 +0100 Subject: [PATCH] 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 --- pihole | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pihole b/pihole index 9cc1069f..8e3f1f98 100755 --- a/pihole +++ b/pihole @@ -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