diff options
author | Azul <azul@riseup.net> | 2012-08-21 17:59:11 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2012-08-21 17:59:45 +0200 |
commit | 0461d76899379cb1e2ecd15456d2e6eb4fb8fa60 (patch) | |
tree | 1994adec7dd4c817f6419ea65efe96ce415bad82 | |
parent | d5e30a95e09bab18a55f9aad1572b6ae3e16e482 (diff) |
moved srp-js files from lib to src
-rw-r--r-- | index.js | 1 | ||||
-rw-r--r-- | spec/DjangoSpecRunner.html | 6 | ||||
-rw-r--r-- | spec/RestfulSpecRunner.html | 6 | ||||
-rw-r--r-- | src/jqueryRest.js (renamed from lib/jqueryRest.js) | 0 | ||||
-rw-r--r-- | src/plainXHR.js (renamed from lib/plainXHR.js) | 0 | ||||
-rw-r--r-- | src/srp.js (renamed from lib/srp.js) | 6 | ||||
-rw-r--r-- | src/srp_session.js (renamed from lib/srp_session.js) | 0 |
7 files changed, 10 insertions, 9 deletions
@@ -1 +1,2 @@ //= require_tree ./lib +//= require_tree ./src diff --git a/spec/DjangoSpecRunner.html b/spec/DjangoSpecRunner.html index 93696f0..5920745 100644 --- a/spec/DjangoSpecRunner.html +++ b/spec/DjangoSpecRunner.html @@ -19,9 +19,9 @@ <script type="text/javascript" src="../lib/rng.js"></script> <script type="text/javascript" src="../lib/jsbn.js"></script> <script type="text/javascript" src="../lib/jsbn2.js"></script> - <script type="text/javascript" src="../lib/srp.js"></script> - <script type="text/javascript" src="../lib/plainXHR.js"></script> - <script type="text/javascript" src="../lib/srp_session.js"></script> + <script type="text/javascript" src="../src/srp.js"></script> + <script type="text/javascript" src="../src/plainXHR.js"></script> + <script type="text/javascript" src="../src/srp_session.js"></script> <!-- include spec files here... --> <script type="text/javascript" src="specHelper.js"></script> diff --git a/spec/RestfulSpecRunner.html b/spec/RestfulSpecRunner.html index 11858e8..caf7147 100644 --- a/spec/RestfulSpecRunner.html +++ b/spec/RestfulSpecRunner.html @@ -19,9 +19,9 @@ <script type="text/javascript" src="../lib/rng.js"></script> <script type="text/javascript" src="../lib/jsbn.js"></script> <script type="text/javascript" src="../lib/jsbn2.js"></script> - <script type="text/javascript" src="../lib/srp.js"></script> - <script type="text/javascript" src="../lib/jqueryRest.js"></script> - <script type="text/javascript" src="../lib/srp_session.js"></script> + <script type="text/javascript" src="../src/srp.js"></script> + <script type="text/javascript" src="../src/jqueryRest.js"></script> + <script type="text/javascript" src="../src/srp_session.js"></script> <!-- include spec files here... --> <script type="text/javascript" src="specHelper.js"></script> diff --git a/lib/jqueryRest.js b/src/jqueryRest.js index 8c8163c..8c8163c 100644 --- a/lib/jqueryRest.js +++ b/src/jqueryRest.js diff --git a/lib/plainXHR.js b/src/plainXHR.js index d07416b..d07416b 100644 --- a/lib/plainXHR.js +++ b/src/plainXHR.js @@ -18,13 +18,13 @@ function SRP(remote, session) { // B = 0 will make the algorithm always succeed // -> refuse such a server answer - if(response.B == 0) { + if(response.B === 0) { srp.error("Server send random number 0 - this is not allowed"); } else { session.calculations(response.s, response.B); - remote.authenticate(session, confirm_authentication) + remote.authenticate(session, confirm_authentication); } - }; + } // Receive M2 from the server and verify it // If an error occurs, raise it as an alert. diff --git a/lib/srp_session.js b/src/srp_session.js index 93bfbe5..93bfbe5 100644 --- a/lib/srp_session.js +++ b/src/srp_session.js |