mirror of
				http://git.whoc.org.uk/git/password-manager.git
				synced 2025-11-04 13:07:34 +01:00 
			
		
		
		
	Merge branch 'timeout'
This commit is contained in:
		@@ -721,8 +721,11 @@ error_log("message");
 | 
			
		||||
				}
 | 
			
		||||
				
 | 
			
		||||
				//=============================================================
 | 
			
		||||
			} else {
 | 
			
		||||
			} else if (isset($_SESSION['K'])) {
 | 
			
		||||
				$result["error"] = "Wrong shared secret!";
 | 
			
		||||
			} else {
 | 
			
		||||
				$result["result"] = "EXCEPTION";
 | 
			
		||||
				$result["message"] = "Trying to communicate without an active connection";
 | 
			
		||||
			}
 | 
			
		||||
			break;
 | 
			
		||||
 | 
			
		||||
@@ -741,4 +744,4 @@ error_log("default");
 | 
			
		||||
	
 | 
			
		||||
	echo(json_encode($result));
 | 
			
		||||
error_log("result: ".json_encode($result));
 | 
			
		||||
?>
 | 
			
		||||
?>
 | 
			
		||||
 
 | 
			
		||||
@@ -238,6 +238,12 @@ YAHOO.extendX(Clipperz.PM.Proxy.PHP, Clipperz.PM.Proxy, {
 | 
			
		||||
//deferredResult.addCallback(function(res) {MochiKit.Logging.logDebug("Proxy.PHP.response - 2: " + res.responseText); return res;});
 | 
			
		||||
//deferredResult.addErrback(function(res) {MochiKit.Logging.logDebug("Proxy.PHP.response - ERROR: " + res); return res;});
 | 
			
		||||
		deferredResult.addCallback(MochiKit.Async.evalJSONRequest);
 | 
			
		||||
		deferredResult.addCallback(function (someValues) {
 | 
			
		||||
			if (someValues['result'] == 'EXCEPTION') {
 | 
			
		||||
				throw someValues['message'];
 | 
			
		||||
			}
 | 
			
		||||
			return someValues;
 | 
			
		||||
		})
 | 
			
		||||
		deferredResult.callback();
 | 
			
		||||
 | 
			
		||||
		return deferredResult;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user