emsApplication/applications/WebConfigure/cgiCommon/handleSignupRequest.cpp

19 lines
440 B
C++
Raw Normal View History

2024-05-24 12:19:45 +08:00
#include <string>
#include <cgicc/Cgicc.h>
#include <cgicc/HTTPHTMLHeader.h>
// ע<><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
void handleSignupRequest(cgicc::Cgicc& cgi)
{
#if 0 // <20><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
std::string username = cgi.getEnvironment().get("username");
std::string email = cgi.getEnvironment().get("email");
// <20><><EFBFBD><EFBFBD>ע<EFBFBD><D7A2><EFBFBD>߼<EFBFBD>...
// <20><><EFBFBD><EFBFBD>ע<EFBFBD><D7A2><EFBFBD>ɹ<EFBFBD>
cgi.addHeader("Content-Type", "text/html");
std::cout << "<html><body>Signup Successful!</body></html>";
#endif
}