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
pull/5465/head
Adam Warner 7 months ago
parent ed5d794008
commit 6292e65b37
No known key found for this signature in database

@ -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

Loading…
Cancel
Save