summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_opt.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-11-19 21:44:15 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-11-19 21:44:15 +0000
commita90a4275934b9b3c5889b3fbf3fb312a83714ede (patch)
treed5df88983626f23a235dc4169c910a5480269b25 /protocols/JabberG/src/jabber_opt.cpp
parent60802648ddc84982418db8d8eb8ec40fa385a8ae (diff)
password converter for Jabber
git-svn-id: http://svn.miranda-ng.org/main/trunk@6944 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_opt.cpp')
-rw-r--r--protocols/JabberG/src/jabber_opt.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/protocols/JabberG/src/jabber_opt.cpp b/protocols/JabberG/src/jabber_opt.cpp
index f29b17bd5b..524050fd1c 100644
--- a/protocols/JabberG/src/jabber_opt.cpp
+++ b/protocols/JabberG/src/jabber_opt.cpp
@@ -447,7 +447,7 @@ protected:
SendDlgItemMessage(m_hwnd, IDC_PRIORITY_SPIN, UDM_SETRANGE, 0, (LPARAM)MAKELONG(127, -128));
- TCHAR *passw = m_proto->JGetStringCrypt(NULL, "LoginPassword");
+ TCHAR *passw = m_proto->getTStringA(NULL, "Password");
if (passw) {
m_txtPassword.SetText(passw);
mir_free(passw);
@@ -504,12 +504,10 @@ protected:
// clear saved password
*m_proto->m_savedPassword = 0;
- if (m_chkSavePassword.GetState() == BST_CHECKED) {
- TCHAR *text = m_txtPassword.GetText();
- m_proto->JSetStringCrypt(NULL, "LoginPassword", text);
- mir_free(text);
- }
- else m_proto->delSetting("LoginPassword");
+ if (m_chkSavePassword.GetState() == BST_CHECKED)
+ m_proto->setTString("Password", ptrT(m_txtPassword.GetText()));
+ else
+ m_proto->delSetting("Password");
int index = m_cbLocale.GetCurSel();
if (index >= 0) {
@@ -1622,7 +1620,7 @@ protected:
m_gotservers = false;
- TCHAR *passw = m_proto->JGetStringCrypt(NULL, "LoginPassword");
+ TCHAR *passw = m_proto->getTStringA(NULL, "Password");
if (passw) {
m_txtPassword.SetText(passw);
mir_free(passw);
@@ -1748,10 +1746,10 @@ protected:
if (m_chkSavePassword.GetState() == BST_CHECKED) {
TCHAR *text = m_txtPassword.GetText();
- m_proto->JSetStringCrypt(NULL, "LoginPassword", text);
+ m_proto->setTString("Password", text);
mir_free(text);
}
- else m_proto->delSetting("LoginPassword");
+ else m_proto->delSetting("Password");
switch (m_cbType.GetItemData(m_cbType.GetCurSel())) {
case ACC_OK: