X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/c65b73de5dfbbb54f7b977a9fcd72d1abbb1e827..2574a28cbf000603bc31f61593dbf061ff56c1d5:/projects/stargazer/plugins/configuration/sgconfig/parser_auth_by.cpp?ds=sidebyside diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_auth_by.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_auth_by.cpp index 2137ef6b..7e38a119 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_auth_by.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_auth_by.cpp @@ -23,8 +23,12 @@ #include "stg/users.h" #include "stg/user.h" +#include + using STG::PARSER::AUTH_BY; +const char * AUTH_BY::tag = "GetUserAuthBy"; + int AUTH_BY::Start(void * /*data*/, const char *el, const char **attr) { if (strcasecmp(el, m_tag.c_str()) != 0) @@ -39,7 +43,8 @@ int AUTH_BY::Start(void * /*data*/, const char *el, const char **attr) void AUTH_BY::CreateAnswer() { - CONST_USER_PTR u; + using ConstUserPtr = const User*; + ConstUserPtr u; if (m_users.FindByName(m_login, &u)) { m_answer = "";