From 45b7b302d00c73bbc7f5531e0f1daaf866ae199e Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Thu, 4 Jun 2009 14:45:24 +0000 Subject: [PATCH] - MGR: Add some basic validation for account manager cookie detection. clientgui/ browser.cpp svn path=/trunk/boinc/; revision=18293 --- checkin_notes | 6 ++++++ clientgui/browser.cpp | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/checkin_notes b/checkin_notes index 1795cdc39f..5c5aceb81d 100644 --- a/checkin_notes +++ b/checkin_notes @@ -5068,3 +5068,9 @@ Rom 4 June 2009 clientgui/ browser.cpp, .h + +Rom 4 June 2009 + - MGR: Add some basic validation for account manager cookie detection. + + clientgui/ + browser.cpp diff --git a/clientgui/browser.cpp b/clientgui/browser.cpp index beff918f4c..8bae95fea2 100644 --- a/clientgui/browser.cpp +++ b/clientgui/browser.cpp @@ -699,8 +699,9 @@ bool detect_account_manager_credentials( detect_cookie_firefox_2(project_url, strCookiePasswordHash, password_hash) ) goto END; END: - // TODO: validation - retval = true; + if (!login.empty() && !password_hash.empty()) { + retval = true; + } return retval; }