#include "stg/users.h"
#include "stg/user.h"
+#include <cstring>
+
using STG::PARSER::AUTH_BY;
const char * AUTH_BY::tag = "GetUserAuthBy";
void AUTH_BY::CreateAnswer()
{
- CONST_USER_PTR u;
+ using ConstUserPtr = const User*;
+ ConstUserPtr u;
if (m_users.FindByName(m_login, &u))
{
m_answer = "<AuthorizedBy result=\"error\" reason=\"User not found.\"/>";