From 17d5278d593d93a331b79dcf68c60face33b6d7a Mon Sep 17 00:00:00 2001 From: NiLSPACE Date: Thu, 25 May 2023 09:34:39 +0200 Subject: Added a warning if the webadmin is enabled without any users. (#5499) --- src/WebAdmin.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/WebAdmin.h') diff --git a/src/WebAdmin.h b/src/WebAdmin.h index 682c533b2..a90d7b2d0 100644 --- a/src/WebAdmin.h +++ b/src/WebAdmin.h @@ -260,6 +260,9 @@ protected: Returns true if webadmin is enabled, false if disabled. */ bool LoadIniFile(void); + /** Checks inside the webadmin.ini file if there are users configured. */ + bool HasUsers(); + /** Handles requests coming to the "/webadmin" or "/~webadmin" URLs */ void HandleWebadminRequest(cHTTPServerConnection & a_Connection, cHTTPIncomingRequest & a_Request); -- cgit v1.2.3