mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-25 07:33:43 +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 ""
|
||||
|
||||
if [ "${PASSWORD}" == "" ]; then
|
||||
setFTLConfigValue "webserver.api.pwhash" "" >/dev/null
|
||||
setFTLConfigValue "webserver.api.password" "" >/dev/null
|
||||
echo -e " ${TICK} Password Removed"
|
||||
exit 0
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue