#include "admins_methods.h"
#include "rpcconfig.h"
+#include "common.h"
//------------------------------------------------------------------------------
return;
}
-ADMIN admin;
+ADMIN * admin;
if (admins->FindAdmin(login, &admin))
{
}
structVal["result"] = xmlrpc_c::value_boolean(true);
-structVal["login"] = xmlrpc_c::value_string(admin.GetLogin());
-structVal["password"] = xmlrpc_c::value_string(admin.GetPassword());
+structVal["login"] = xmlrpc_c::value_string(admin->GetLogin());
+structVal["password"] = xmlrpc_c::value_string(admin->GetPassword());
-const PRIV * priv = admin.GetPriv();
+const PRIV * priv = admin->GetPriv();
structVal["user_stat"] = xmlrpc_c::value_boolean(priv->userStat);
structVal["user_conf"] = xmlrpc_c::value_boolean(priv->userConf);
return;
}
-ADMIN admin;
+ADMIN * admin;
if (admins->FindAdmin(adminInfo.admin, &admin))
{
return;
}
-ADMIN admin;
+ADMIN * admin;
if (admins->FindAdmin(adminInfo.admin, &admin))
{
return;
}
-ADMIN loggedAdmin;
+ADMIN * loggedAdmin;
if (admins->FindAdmin(adminInfo.admin, &loggedAdmin))
{
return;
}
-ADMIN admin;
+ADMIN * admin;
if (admins->FindAdmin(login, &admin))
{
ADMIN_CONF conf;
-conf.priv = *admin.GetPriv();
-conf.password = admin.GetPassword();
+conf.priv = *admin->GetPriv();
+conf.password = admin->GetPassword();
conf.login = login;
std::map<std::string, xmlrpc_c::value> structVal(