From ca155b4e16d15d5ffd62d20ce42a7516c1f9c49c Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Sun, 4 Sep 2011 02:02:36 +0200 Subject: Fix passwords and XML-RPC logins. Make switching off XML-RPC per-domain not per-user (fixes #107). Login just once per session and domain (fixes #113). --- data/lib/rpcutils.js | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'data/lib/rpcutils.js') diff --git a/data/lib/rpcutils.js b/data/lib/rpcutils.js index d29fd68..ee8804a 100644 --- a/data/lib/rpcutils.js +++ b/data/lib/rpcutils.js @@ -2,28 +2,6 @@ //http://www.opensource.org/licenses/mit-license.php "use strict"; -/* -We should first login and then we shouldn't bother with it. -It could be interesting to know how many logins per second are bad. - */ - -function JSONRPCLogin(callback) { - if (!constantData.passwordState.password) { - return; - } - - console.myDebug("JSONRPCLogin: passObj = " + - constantData.passwordState.toSource()); - makeJSONRPCCall("User.login", { - login: getLogin(), - password: constantData.passwordState.password, - remember: false - }, function(logResult) { - callback(); - }); -}; - - // Make a JSONL-RPC call ... most of the business logic should stay in the // content script // http://json-rpc.org/wd/JSON-RPC-1-1-WD-20060807.html -- cgit