From 95df478b7d3f62e2893499aa7a801b0cacb19dcd Mon Sep 17 00:00:00 2001 From: Azul Date: Wed, 27 Jun 2012 15:08:41 +0200 Subject: 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 --- example/public/srp.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 example/public/srp.js (limited to 'example/public/srp.js') 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(); +} -- cgit v1.2.3