From 22efa23923b7cfec282f7b1d97444394029788ca Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 19 Jul 2013 06:31:48 +0000 Subject: remove auth data when they not needed git-svn-id: http://svn.miranda-ng.org/main/trunk@5411 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewsAggregator/Src/Options.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'plugins/NewsAggregator/Src/Options.cpp') 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: -- cgit v1.2.3