summaryrefslogtreecommitdiff
path: root/modules/webcpanel
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-02-20 19:49:01 +0000
committerSadie Powell <sadie@witchery.services>2025-02-20 19:49:01 +0000
commit0c193f8149a0af210383a1798586075d132e4904 (patch)
tree7b4f2479516ed6e2e88d8f9c25228b39b4088d0c /modules/webcpanel
parentfa0f78b937a970049623d11361d106cf2f12cedd (diff)
Store the source address in the identify request.
Diffstat (limited to 'modules/webcpanel')
-rw-r--r--modules/webcpanel/pages/index.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/webcpanel/pages/index.cpp b/modules/webcpanel/pages/index.cpp
index 7b9a65c18..1cb047a98 100644
--- a/modules/webcpanel/pages/index.cpp
+++ b/modules/webcpanel/pages/index.cpp
@@ -18,7 +18,16 @@ class WebpanelRequest final
TemplateFileServer::Replacements replacements;
public:
- WebpanelRequest(Module *o, HTTPReply &r, HTTPMessage &m, HTTPProvider *s, const Anope::string &p_n, HTTPClient *c, TemplateFileServer::Replacements &re, const Anope::string &user, const Anope::string &pass) : IdentifyRequest(o, user, pass), reply(r), message(m), server(s), page_name(p_n), client(c), replacements(re) { }
+ WebpanelRequest(Module *o, HTTPReply &r, HTTPMessage &m, HTTPProvider *s, const Anope::string &p_n, HTTPClient *c, TemplateFileServer::Replacements &re, const Anope::string &user, const Anope::string &pass)
+ : IdentifyRequest(o, user, pass, c->GetIP())
+ , reply(r)
+ , message(m)
+ , server(s)
+ , page_name(p_n)
+ , client(c)
+ , replacements(re)
+ {
+ }
void OnSuccess() override
{