From bd6d60789bfb97041d0d219f645c08b7b479b782 Mon Sep 17 00:00:00 2001 From: elijah Date: Thu, 4 Jul 2013 03:51:16 -0700 Subject: always use the API-only controller for all requests. --- src/srp_account.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/srp_account.js') diff --git a/src/srp_account.js b/src/srp_account.js index 336e013..e949f12 100644 --- a/src/srp_account.js +++ b/src/srp_account.js @@ -1,5 +1,5 @@ -srp.Account = function(login, password) { - +srp.Account = function(login, password, id) { + // Returns the user's identity this.login = function() { return login || document.getElementById("srp_username").value; @@ -10,4 +10,8 @@ srp.Account = function(login, password) { return password || document.getElementById("srp_password").value; }; + // The user's id + this.id = function() { + return id || document.getElementById("user_param").value; + }; } -- cgit v1.2.3