summaryrefslogtreecommitdiff
path: root/src/srp_account.js
blob: 336e013b4b35c835b5ad524d3ee4e82c30eef0c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;
  };

}