diff --git a/scripts/pi-hole/js/settings-api.js b/scripts/pi-hole/js/settings-api.js index d64a61925..ffb6cc459 100644 --- a/scripts/pi-hole/js/settings-api.js +++ b/scripts/pi-hole/js/settings-api.js @@ -266,6 +266,8 @@ function processWebServerConfig() { }) .done(function (data) { setConfigValues("webserver", "webserver", data.config.webserver); + if (data.config.webserver.api.app_pwhash.value.length > 0) + $("#existing_apppw_warning").show(); }) .fail(function (data) { apiFailure(data); diff --git a/settings-api.lp b/settings-api.lp index de587cd61..97efa5710 100644 --- a/settings-api.lp +++ b/settings-api.lp @@ -260,6 +260,9 @@ mg.include('scripts/pi-hole/lua/settings_header.lp','r')
IMPORTANT: The app password generated here will only be shown once and cannot be recovered. Make sure to store it in a safe place!
+