HTTPServer/__setupadmin.h
2019-05-31 14:25:19 -07:00

24 lines
889 B
C++

#ifndef ____setupadmin_h__
#define ____setupadmin_h__
namespace http {
class __setupadmin : public HTTPPage {
int processCommand(std::string request, core::Session *session, HTTPSession *httpSession, std::stringstream &data) override {
data << "<http><head></head><body style=\"background: #006; color: #fff;\">\
<form action=\"setupadmin\" method=\"POST\"><div style=\"background: #44C; text: #888; padding: 20px;\"><p>Please enter credential information\
for the security officer.<br><input type=\"text\" name=\"username\" size=\"50\">\
<br>Session Id: " << httpSession->getSessionId() << "\
<br>The configuration has not yet been established for this web site.</p>\
<button>Configure</button>\
</div></form></body></html>";
return true;
}
};
}
#endif