allow to protect configuration page withh user/pass
This commit is contained in:
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user