]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/sgconfig/parser_auth_by.cpp
[NY] Simplified SERVCONF interface.
[stg.git] / projects / stargazer / plugins / configuration / sgconfig / parser_auth_by.cpp
index e1da75b682f4c25f31e830578909ec1a02ca575b..54921571ae291e46ce2e0eb55d2228243af2b5ca 100644 (file)
@@ -33,11 +33,11 @@ answerList->erase(answerList->begin(), answerList->end());
 USER_PTR u;
 if (users->FindByName(login, &u))
     {
-    answerList->push_back("<user result=\"error\"/>");
+    answerList->push_back("<AuthorizedBy result=\"error\" reason=\"User not found.\"/>");
     return;
     }
 
-std::string s = "<AuthorizedBy>";
+std::string s = "<AuthorizedBy result=\"ok\">";
 std::vector<std::string> list(u->GetAuthorizers());
 for (std::vector<std::string>::const_iterator it = list.begin(); it != list.end(); ++it)
     s += "<Auth name=\"" + *it + "\"/>";