]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/sgconfig/parser_auth_by.cpp
Remove extra debug.
[stg.git] / projects / stargazer / plugins / configuration / sgconfig / parser_auth_by.cpp
index ab1cabdf9a54af35bf61acf73cf4cd41b0477828..7e38a1199b6abd2d4c9950433564bfd3d5e20e86 100644 (file)
@@ -23,6 +23,8 @@
 #include "stg/users.h"
 #include "stg/user.h"
 
+#include <cstring>
+
 using STG::PARSER::AUTH_BY;
 
 const char * AUTH_BY::tag = "GetUserAuthBy";
@@ -41,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 = "<AuthorizedBy result=\"error\" reason=\"User not found.\"/>";