diff options
author | Michele Calgaro <[email protected]> | 2018-11-28 23:51:20 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2018-11-28 23:51:20 +0900 |
commit | 6db0c5f228d12fc1a1ef861717d1dc4a3c9d6a6c (patch) | |
tree | 972d106294d740e92c586300da66d011bfe9d13e /tdmlib/kgreet_pam.cpp | |
parent | 6ae10fc66ed3c35e98e49bac8bf6670f0a9e2d6b (diff) | |
download | tdebase-6db0c5f228d12fc1a1ef861717d1dc4a3c9d6a6c.tar.gz tdebase-6db0c5f228d12fc1a1ef861717d1dc4a3c9d6a6c.zip |
Improved previous commit using local8Bit() in place of utf8() when a
password is transmitted over pipes to other processes.
Signed-off-by: Michele Calgaro <[email protected]>
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'tdmlib/kgreet_pam.cpp')
-rw-r--r-- | tdmlib/kgreet_pam.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tdmlib/kgreet_pam.cpp b/tdmlib/kgreet_pam.cpp index ade772938..e7a5f0747 100644 --- a/tdmlib/kgreet_pam.cpp +++ b/tdmlib/kgreet_pam.cpp @@ -325,16 +325,16 @@ KPamGreeter::returnData() KGreeterPluginHandler::IsUser ); break; case 1: - handler->gplugReturnText( authEdit[0]->password().utf8(), + handler->gplugReturnText( authEdit[0]->password().local8Bit(), KGreeterPluginHandler::IsPassword | KGreeterPluginHandler::IsSecret ); break; case 2: - handler->gplugReturnText( authEdit[1]->password().utf8(), + handler->gplugReturnText( authEdit[1]->password().local8Bit(), KGreeterPluginHandler::IsSecret ); break; default: // case 3: - handler->gplugReturnText( authEdit[2]->password().utf8(), + handler->gplugReturnText( authEdit[2]->password().local8Bit(), KGreeterPluginHandler::IsNewPassword | KGreeterPluginHandler::IsSecret ); break; |