mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-01-31 19:40:14 +08:00
Use SHA-1 hash of our SteamID when enabling 2FA
This commit is contained in:
parent
ff1c3279c8
commit
2a7a03d35e
@ -18,7 +18,7 @@ SteamCommunity.prototype.enableTwoFactor = function(callback) {
|
|||||||
|
|
||||||
// Create a random device ID hash
|
// Create a random device ID hash
|
||||||
var hash = require('crypto').createHash('sha1');
|
var hash = require('crypto').createHash('sha1');
|
||||||
hash.update(Math.random().toString());
|
hash.update(self.steamID.getSteamID64());
|
||||||
hash = hash.digest('hex');
|
hash = hash.digest('hex');
|
||||||
|
|
||||||
self.request.post({
|
self.request.post({
|
||||||
|
Loading…
Reference in New Issue
Block a user