summaryrefslogtreecommitdiff
path: root/lib/srp.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/srp.js')
-rw-r--r--lib/srp.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/srp.js b/lib/srp.js
index 9ef75f5..a5a2c14 100644
--- a/lib/srp.js
+++ b/lib/srp.js
@@ -1,4 +1,4 @@
-function SRP()
+function SRP(remote)
{
// Variables session will be used in the SRP protocol
var Nstr = "115b8b692e0e045692cf280b436735c77a5a9e8a9e7ed56c965f87db5b2a2ece3";
@@ -22,7 +22,7 @@ function SRP()
var authenticated = false;
var I = document.getElementById("srp_username").value;
var p = document.getElementById("srp_password").value;
- var remote = plainXHR();
+ remote = remote || plainXHR();
// *** Accessor methods ***