diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-07-19 06:31:48 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-07-19 06:31:48 +0000 |
commit | 22efa23923b7cfec282f7b1d97444394029788ca (patch) | |
tree | a67b7512acc921b0369e63679fdac33c34aa8828 | |
parent | 7bf0edaf97198eae500070b1694e35b01ed8c6ba (diff) |
remove auth data when they not needed
git-svn-id: http://svn.miranda-ng.org/main/trunk@5411 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/NewsAggregator/Src/Options.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/NewsAggregator/Src/Options.cpp b/plugins/NewsAggregator/Src/Options.cpp index c753a655f6..8fe44be7d9 100644 --- a/plugins/NewsAggregator/Src/Options.cpp +++ b/plugins/NewsAggregator/Src/Options.cpp @@ -241,6 +241,12 @@ INT_PTR CALLBACK DlgProcChangeFeedOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LP CallService(MS_DB_CRYPT_ENCODESTRING, strlen(passw), (LPARAM)&passw);
db_set_s(SelItem->hContact, MODULE, "Password", passw);
}
+ else
+ {
+ db_unset(SelItem->hContact, MODULE, "UseAuth");
+ db_unset(SelItem->hContact, MODULE, "Login");
+ db_unset(SelItem->hContact, MODULE, "Password");
+ }
DeleteAllItems(SelItem->hwndList);
UpdateList(SelItem->hwndList);
}
@@ -394,6 +400,12 @@ INT_PTR CALLBACK DlgProcChangeFeedMenu(HWND hwndDlg, UINT msg, WPARAM wParam, LP CallService(MS_DB_CRYPT_ENCODESTRING, strlen(passw), (LPARAM)&passw);
db_set_s(hContact, MODULE, "Password", passw);
}
+ else
+ {
+ db_unset(hContact, MODULE, "UseAuth");
+ db_unset(hContact, MODULE, "Login");
+ db_unset(hContact, MODULE, "Password");
+ }
}
case IDCANCEL:
|