Diff of /branches/phpGedView-ca/modules/FamilySearch/PHP-FamilySearchAPI/FSAPI/FamilySearchProxy.php [r6960] .. [r6961] Maximize Restore

  Switch to side-by-side view

--- a/branches/phpGedView-ca/modules/FamilySearch/PHP-FamilySearchAPI/FSAPI/FamilySearchProxy.php
+++ b/branches/phpGedView-ca/modules/FamilySearch/PHP-FamilySearchAPI/FSAPI/FamilySearchProxy.php
@@ -128,7 +128,11 @@
 		$response = $request->getResponseBody();
 		//var_dump($response);
 		$ct = preg_match("/session\s+id=\"(.+)\"/", $response, $match);
-		if ($ct>0) $this->sessionid = $match[1];
+		if ($ct>0) {
+			$this->sessionid = $match[1];
+			$this->username = "";
+			$this->password = "";
+		}
 		else $this->hasError = true;
 		
 		//-- store the id on the session for subsequent API calls