summaryrefslogtreecommitdiff
path: root/src/srp_session.js
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2012-11-22 13:01:22 +0100
committerAzul <azul@riseup.net>2012-11-22 13:01:22 +0100
commit076d6e251e4caf826787d87b11434e535960455c (patch)
tree5a929a5c014429d079e2bce579473039926135fe /src/srp_session.js
parent61ab6195768e78f1378caca7ca8ef4e7adcaebb3 (diff)
don't cache password and login
Diffstat (limited to 'src/srp_session.js')
-rw-r--r--src/srp_session.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/srp_session.js b/src/srp_session.js
index cfeaadb..3f27e3e 100644
--- a/src/srp_session.js
+++ b/src/srp_session.js
@@ -57,13 +57,13 @@ srp.Session = function(login, password) {
// Returns the user's identity
this.getI = function() {
- I = I || document.getElementById("srp_username").value;
+ I = login || document.getElementById("srp_username").value;
return I;
};
- // Returns the user's identity
+ // Returns the password currently typed in
this.getPass = function() {
- pass = pass || document.getElementById("srp_password").value;
+ pass = password || document.getElementById("srp_password").value;
return pass;
};