]> git.stg.codes - stg.git/commitdiff
Fixed response for GetAuthBy on error.
authorMaxim Mamontov <faust.madf@gmail.com>
Fri, 23 Aug 2013 15:58:13 +0000 (18:58 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Fri, 23 Aug 2013 15:58:13 +0000 (18:58 +0300)
projects/stargazer/plugins/configuration/sgconfig/parser_auth_by.cpp

index e1da75b682f4c25f31e830578909ec1a02ca575b..3c17ce95b65a6effa5698868ab8e6acf1cedf5cb 100644 (file)
@@ -33,7 +33,7 @@ answerList->erase(answerList->begin(), answerList->end());
 USER_PTR u;
 if (users->FindByName(login, &u))
     {
 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;
     }
 
     return;
     }