X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/8e80bb9cec2c90dd61f810fb1525932a434288eb..1c324d5b2380a68f209e65969079677dbaf1c511:/projects/stargazer/plugins/configuration/sgconfig/parser_admins.cpp?ds=inline 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;