diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-09-04 02:02:36 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-09-04 02:02:36 +0200 |
commit | ca155b4e16d15d5ffd62d20ce42a7516c1f9c49c (patch) | |
tree | 701eaefa58b58530e24a4c5a66b25290ec1e21f7 /data/lib/rpcutils.js | |
parent | 3c1055ba0f1024133d5ffe5e98d95d00f3b97cbe (diff) | |
download | bugzilla-triage-ca155b4e16d15d5ffd62d20ce42a7516c1f9c49c.tar.gz |
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).
Diffstat (limited to 'data/lib/rpcutils.js')
-rw-r--r-- | data/lib/rpcutils.js | 22 |
1 files changed, 0 insertions, 22 deletions
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 |