From 2a7a03d35eccfe76b95f1c68412def22b89b1e9f Mon Sep 17 00:00:00 2001 From: Alexander Corn Date: Mon, 7 Dec 2015 16:34:49 -0500 Subject: [PATCH] Use SHA-1 hash of our SteamID when enabling 2FA --- components/twofactor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/twofactor.js b/components/twofactor.js index da79035..805993c 100644 --- a/components/twofactor.js +++ b/components/twofactor.js @@ -18,7 +18,7 @@ SteamCommunity.prototype.enableTwoFactor = function(callback) { // Create a random device ID hash var hash = require('crypto').createHash('sha1'); - hash.update(Math.random().toString()); + hash.update(self.steamID.getSteamID64()); hash = hash.digest('hex'); self.request.post({