From 451fb82e544fda19888c4d5bc250431a3197cef6 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 22 Mar 2011 23:58:53 -0400 Subject: Bug #1203 --- modules/extra/m_xmlrpc_main.cpp | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) (limited to 'modules/extra/m_xmlrpc_main.cpp') 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(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] : ""; -- cgit