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.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/srp_account.js b/src/srp_account.js
new file mode 100644
index 0000000..336e013
--- /dev/null
+++ b/src/srp_account.js
@@ -0,0 +1,13 @@
+srp.Account = function(login, password) {
+
+ // Returns the user's identity
+ this.login = function() {
+ return login || document.getElementById("srp_username").value;
+ };
+
+ // Returns the password currently typed in
+ this.password = function() {
+ return password || document.getElementById("srp_password").value;
+ };
+
+}