Throw Error if using confirmations without being logged in

This commit is contained in:
Alexander Corn 2017-06-02 23:35:23 -04:00
parent 7e39715427
commit bd29d598b1

View File

@ -243,6 +243,10 @@ SteamCommunity.prototype.acceptAllConfirmations = function(time, confKey, allowK
};
function request(community, url, key, time, tag, params, json, callback) {
if (!community.steamID) {
throw new Error("Must be logged in before trying to do anything with confirmations");
}
params = params || {};
params.p = SteamTotp.getDeviceID(community.steamID);
params.a = community.steamID.getSteamID64();