Use SHA-1 hash of our SteamID when enabling 2FA

This commit is contained in:
Alexander Corn 2015-12-07 16:34:49 -05:00
parent ff1c3279c8
commit 2a7a03d35e

View File

@ -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({