diff options
author | simonmorris@chromium.org <simonmorris@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-01 18:17:42 +0000 |
---|---|---|
committer | simonmorris@chromium.org <simonmorris@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-01 18:17:42 +0000 |
commit | 6cdc63f2d9b21a8ce76858a4bf5bca81995354c5 (patch) | |
tree | 4781382a099082ae43e901b91a90fe1660da318b /remoting/webapp/host_controller.js | |
parent | eca0da37ac534aef8d60d7997e75e47b6b01ca7a (diff) | |
download | chromium_src-6cdc63f2d9b21a8ce76858a4bf5bca81995354c5.zip chromium_src-6cdc63f2d9b21a8ce76858a4bf5bca81995354c5.tar.gz chromium_src-6cdc63f2d9b21a8ce76858a4bf5bca81995354c5.tar.bz2 |
[Chromoting] Factor out common code for pin hashing.
Review URL: http://codereview.chromium.org/10243011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134725 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/webapp/host_controller.js')
-rw-r--r-- | remoting/webapp/host_controller.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/remoting/webapp/host_controller.js b/remoting/webapp/host_controller.js index 750212e..6284a1e 100644 --- a/remoting/webapp/host_controller.js +++ b/remoting/webapp/host_controller.js @@ -152,7 +152,7 @@ remoting.HostController.prototype.start = function(hostPin, callback) { if (success) { var hostSecretHash = - 'hmac:' + that.plugin_.getPinHash(newHostId, hostPin); + that.plugin_.getPinHash(newHostId, hostPin); var hostConfig = JSON.stringify({ xmpp_login: remoting.oauth2.getCachedEmail(), oauth_refresh_token: remoting.oauth2.exportRefreshToken(), @@ -274,7 +274,7 @@ remoting.HostController.prototype.updatePin = function(newPin, callback) { } var hostId = config['host_id']; var newConfig = JSON.stringify({ - host_secret_hash: 'hmac:' + that.plugin_.getPinHash(hostId, newPin) + host_secret_hash: that.plugin_.getPinHash(hostId, newPin) }); that.plugin_.updateDaemonConfig(newConfig, callback); }; |