X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/d8f5aa2489e10fc20ee3522a8abe2a56f24076d7..58c44b8153f2164b07be44e463bf7b92044098bd:/projects/stargazer/plugins/configuration/sgconfig/parser_auth_by.cpp diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_auth_by.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_auth_by.cpp index 54921571..1ac27d65 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_auth_by.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_auth_by.cpp @@ -28,19 +28,17 @@ return -1; void PARSER_AUTH_BY::CreateAnswer() { -answerList->erase(answerList->begin(), answerList->end()); - USER_PTR u; if (users->FindByName(login, &u)) { - answerList->push_back(""); + answer = ""; return; } -std::string s = ""; +answer.clear(); +answer += ""; std::vector list(u->GetAuthorizers()); for (std::vector::const_iterator it = list.begin(); it != list.end(); ++it) - s += ""; -s += ""; -answerList->push_back(s); + answer += ""; +answer += ""; }