esp8266-react-framework/lib/framework/SecuritySettingsService.h

23 lines
662 B
C
Raw Normal View History

2019-05-29 22:48:16 +00:00
#ifndef SecuritySettingsService_h
#define SecuritySettingsService_h
2019-08-10 11:35:26 +00:00
#include <AdminSettingsService.h>
2019-05-29 22:48:16 +00:00
#include <SecurityManager.h>
#define DEFAULT_ADMIN_USERNAME "admin"
#define DEFAULT_GUEST_USERNAME "guest"
2019-05-29 22:48:16 +00:00
#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();
2019-05-29 22:48:16 +00:00
protected:
void readFromJsonObject(JsonObject& root);
void writeToJsonObject(JsonObject& root);
2019-05-29 22:48:16 +00:00
};
#endif // end SecuritySettingsService_h