From f0b308e4081a4c804da4f7bfbe4802a8999d4c26 Mon Sep 17 00:00:00 2001 From: Azul Date: Sat, 4 Aug 2012 16:01:05 +0200 Subject: copied jqueryRest and restful specs from django no real change yet --- lib/srp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/srp.js') 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 *** -- cgit v1.2.3