4
mirror of git://git.acid.vegas/anope.git synced 2024-11-15 12:16:41 +00:00
anope/modules/webcpanel/pages/nickserv/confirm.cpp

27 lines
838 B
C++
Raw Normal View History

2023-05-07 17:44:21 +00:00
/*
* (C) 2003-2022 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*/
#include "../../webcpanel.h"
WebCPanel::NickServ::Confirm::Confirm(const Anope::string &cat, const Anope::string &u) : WebPanelProtectedPage(cat, u)
{
}
bool WebCPanel::NickServ::Confirm::OnRequest(HTTPProvider *server, const Anope::string &page_name, HTTPClient *client, HTTPMessage &message, HTTPReply &reply, NickAlias *na, TemplateFileServer::Replacements &replacements)
{
std::vector<Anope::string> params;
params.push_back(message.post_data["code"]);
WebPanel::RunCommand(client, na->nc->display, na->nc, "NickServ", "nickserv/confirm", params, replacements);
TemplateFileServer page("nickserv/confirm.html");
page.Serve(server, page_name, client, message, reply, replacements);
return true;
}