From f25c6389c3a956a6ca497db12140e5b4bd8180d8 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Mon, 23 Jun 2014 13:34:12 -0300 Subject: [PATCH] removed default username and password from javascript. please use url http://user:pwd@localhost:28332 instead --- js/twister_io.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/twister_io.js b/js/twister_io.js index ea8f6f9..7b01dec 100644 --- a/js/twister_io.js +++ b/js/twister_io.js @@ -8,7 +8,9 @@ // main json rpc method. receives callbacks for success and error function twisterRpc(method, params, resultFunc, resultArg, errorFunc, errorArg) { - var foo = new $.JsonRpcClient({ ajaxUrl: '/', username: 'user', password: 'pwd'}); + // removing hardcoded username from javascript: please use url http://user:pwd@localhost:28332 instead + //var foo = new $.JsonRpcClient({ ajaxUrl: '/', username: 'user', password: 'pwd'}); + var foo = new $.JsonRpcClient({ ajaxUrl: '/' }); foo.call(method, params, function(ret) { resultFunc(resultArg, ret); }, function(ret) { if(ret != null) errorFunc(errorArg, ret); }