diff options
| author | Adam <Adam@anope.org> | 2011-03-22 23:58:53 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-03-22 23:58:53 -0400 |
| commit | 451fb82e544fda19888c4d5bc250431a3197cef6 (patch) | |
| tree | a41599e56a43f42d37bc6481fbb86f15b2d42d6b /modules/extra/m_xmlrpc_main.cpp | |
| parent | c02d51f52348758487223856e716261a734af8fc (diff) | |
Bug #1203
Diffstat (limited to 'modules/extra/m_xmlrpc_main.cpp')
| -rw-r--r-- | modules/extra/m_xmlrpc_main.cpp | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/modules/extra/m_xmlrpc_main.cpp b/modules/extra/m_xmlrpc_main.cpp index 4efe230ad..33cf3818c 100644 --- a/modules/extra/m_xmlrpc_main.cpp +++ b/modules/extra/m_xmlrpc_main.cpp @@ -45,9 +45,7 @@ class MyXMLRPCEvent : public XMLRPCEvent public: void Run(XMLRPCServiceInterface *iface, XMLRPCClientSocket *source, XMLRPCRequest *request) { - if (request->name == "login") - this->DoLogin(iface, source, request); - else if (request->name == "command") + if (request->name == "command") this->DoCommand(iface, source, request); else if (request->name == "checkAuthentication") this->DoCheckAuthentication(iface, source, request); @@ -102,29 +100,6 @@ class MyXMLRPCEvent : public XMLRPCEvent } } - void DoLogin(XMLRPCServiceInterface *iface, XMLRPCClientSocket *source, XMLRPCRequest *request) - { - if (source->logged_in) - request->reply("result", "Logged in"); - else - { - XMLRPCListenSocket *ls = static_cast<XMLRPCListenSocket *>(source->LS); - - if (ls->username.empty() && ls->password.empty()) - { - request->reply("result", "Logged in"); - source->logged_in = true; - } - else if (request->data.size() > 1 && request->data[0] == ls->username && request->data[1] == ls->password) - { - request->reply("result", "Logged in"); - source->logged_in = true; - } - else - request->reply("error", "Invalid credentials"); - } - } - void DoCheckAuthentication(XMLRPCServiceInterface *iface, XMLRPCClientSocket *source, XMLRPCRequest *request) { Anope::string username = request->data.size() > 0 ? request->data[0] : ""; |
