summaryrefslogtreecommitdiff
path: root/src/srp_account.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/srp_account.js')
-rw-r--r--src/srp_account.js8
1 files changed, 6 insertions, 2 deletions
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;
+ };
}