mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-02-18 01:14:08 +00:00
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:
parent
ed5d794008
commit
6292e65b37
1 changed files with 1 additions and 1 deletions
2
pihole
2
pihole
|
@ -43,7 +43,7 @@ SetWebPassword() {
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
if [ "${PASSWORD}" == "" ]; then
|
if [ "${PASSWORD}" == "" ]; then
|
||||||
setFTLConfigValue "webserver.api.pwhash" "" >/dev/null
|
setFTLConfigValue "webserver.api.password" "" >/dev/null
|
||||||
echo -e " ${TICK} Password Removed"
|
echo -e " ${TICK} Password Removed"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue