summaryrefslogtreecommitdiff
path: root/src/srp.js
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2012-11-19 17:36:49 +0100
committerAzul <azul@riseup.net>2012-11-19 17:36:49 +0100
commit2e365cba5263ec50f10fb074c054ef19adb8f7b0 (patch)
tree2f0a7aba3ab7a5da123de781357ef71a9be7f91d /src/srp.js
parent49bfe6ab74229ba4da5342382b87dcd6fca239fa (diff)
first step at cleaning up the srp
Diffstat (limited to 'src/srp.js')
-rw-r--r--src/srp.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/srp.js b/src/srp.js
index 6a377ce..5b76a88 100644
--- a/src/srp.js
+++ b/src/srp.js
@@ -1,3 +1,22 @@
+var srp = (function(){
+
+ function signup()
+ {
+ this.remote.signup();
+ };
+
+ function login()
+ {
+ this.remote.login();
+ };
+
+ return {
+ signup: signup,
+ login: login
+ }
+}());
+
+
function SRP(remote, session)
{
var srp = this;