summaryrefslogtreecommitdiff
path: root/example/public/srp.js
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-06-27 15:08:41 +0200
committerAzul <azul@leap.se>2012-06-27 15:08:41 +0200
commit95df478b7d3f62e2893499aa7a801b0cacb19dcd (patch)
tree309b85fff49ad0108eb3413104a3379a7d91d347 /example/public/srp.js
parentbd88f52b03c2b8061aa753b7d925dd9bc4057e6e (diff)
moved to ajax workflow and integrated srp-js - not quite there yet
* needs a bit of cleanup from the old workflow * are client and server using the same primes right now? * store multiple users on the server side
Diffstat (limited to 'example/public/srp.js')
-rw-r--r--example/public/srp.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/example/public/srp.js b/example/public/srp.js
new file mode 100644
index 0000000..e68e220
--- /dev/null
+++ b/example/public/srp.js
@@ -0,0 +1,9 @@
+$(document).ready(function(){
+ $('#login-btn').click(on_login);
+});
+
+function on_login(event) {
+ srp = new SRP();
+ srp.identify();
+ event.preventDefault();
+}