code:
user.changeEmail({
"password": password,
"newEmail": newEmail
}, function(err, needsSmsCode) {
if(!err) {
user.changeEmail({
"password": password,
"newEmail": newEmail,
"code": emailcode,
"twoFactorCode": code
}, function(err, needsSmsCode) {
if(err) {
console.log(err);
} else {
console.log('ok');
}
});
}
}); error:
{ Error: InvalidParam
at Object.exports.eresultError (/root/bot/node_modules/steam-user/components/helpers.js:75:12)
at /root/bot/node_modules/steam-user/components/account.js:129:21
at Object.cb (/root/bot/node_modules/steam-user/components/messages.js:174:4)
at CMClient._netMsgReceived (/root/bot/node_modules/steam-client/lib/cm_client.js:321:26)
at CMClient.handlers.(anonymous function) (/root/bot/node_modules/steam-client/lib/cm_client.js:603:8)
at CMClient._netMsgReceived (/root/bot/node_modules/steam-client/lib/cm_client.js:305:24)
at emitOne (events.js:116:13)
at TCPConnection.emit (events.js:211:7)
at TCPConnection._readPacket (/root/bot/node_modules/steam-client/lib/tcp_connection.js:183:7)
at emitNone (events.js:106:13) eresult: 8 }
with steamGuard is fine