Index: remoting/webapp/host_controller.js |
diff --git a/remoting/webapp/host_controller.js b/remoting/webapp/host_controller.js |
index 750212ed97f96147bb08e124fe3a2ebe48431ed2..6284a1e3e5470c742d794df9d17d0a7a41142ce4 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); |
}; |