bcfeef8004
Adds a webpack plugin to package interface as PROGMEM into a header file in the framework. Adds a build flag to optionally enable serving from PROGMEM or SPIFFS as required Adds documentation changes to describe changes
23 lines
662 B
C++
23 lines
662 B
C++
#ifndef SecuritySettingsService_h
|
|
#define SecuritySettingsService_h
|
|
|
|
#include <AdminSettingsService.h>
|
|
#include <SecurityManager.h>
|
|
|
|
#define DEFAULT_ADMIN_USERNAME "admin"
|
|
#define DEFAULT_GUEST_USERNAME "guest"
|
|
|
|
#define SECURITY_SETTINGS_FILE "/config/securitySettings.json"
|
|
#define SECURITY_SETTINGS_PATH "/rest/securitySettings"
|
|
|
|
class SecuritySettingsService : public AdminSettingsService, public SecurityManager {
|
|
public:
|
|
SecuritySettingsService(AsyncWebServer* server, FS* fs);
|
|
~SecuritySettingsService();
|
|
|
|
protected:
|
|
void readFromJsonObject(JsonObject& root);
|
|
void writeToJsonObject(JsonObject& root);
|
|
};
|
|
|
|
#endif // end SecuritySettingsService_h
|