X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/0907aa4037b12b6b88ee24495d4577a064d4f8db..e6c0bd53164bd30bbe038c80a370707847fc266c:/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;