X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/8e80bb9cec2c90dd61f810fb1525932a434288eb..c517056585ce9699f0d8b3be6423ef953e90c47b:/projects/stargazer/plugins/configuration/sgconfig/parser_admins.cpp?ds=sidebyside diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_admins.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_admins.cpp index bc47b7fd..1de533d6 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_admins.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_admins.cpp @@ -145,13 +145,13 @@ void CHG_ADMIN::CreateAnswer() AdminConf conf(origAdmin->conf()); - if (!password.empty()) - conf.password = password.data(); + if (password) + conf.password = password.value(); - if (!privAsString.empty()) + if (privAsString) { int p = 0; - if (str2x(privAsString.data().c_str(), p) < 0) + if (str2x(privAsString.value().c_str(), p) < 0) { m_answer = "<" + m_tag + " Result = \"Incorrect parameter Priv.\"/>"; return;