allow to protect configuration page withh user/pass

This commit is contained in:
technyon
2022-04-04 21:50:37 +02:00
parent 08f7c6025f
commit 90e0a2daa2
3 changed files with 97 additions and 13 deletions

View File

@@ -29,7 +29,8 @@ public:
private:
void processArgs();
void serveHtml(String& response);
void buildHtml(String& response);
void buildCredHtml(String& response);
void printInputField(String& response, const char* token, const char* description, const char* value, size_t maxLength);
void printInputField(String& response, const char* token, const char* description, const int value, size_t maxLength);
@@ -40,5 +41,9 @@ private:
Network* _network;
Preferences* _preferences;
bool _hasCredentials = false;
char _credUser[20] = {0};
char _credPassword[20] = {0};
bool _enabled = true;
};