MrPotato Posted August 9, 2018 Report Share Posted August 9, 2018 (edited) 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 Edited August 9, 2018 by FunnyCheeze Quote Link to comment Share on other sites More sharing options...
MrPotato Posted August 10, 2018 Author Report Share Posted August 10, 2018 maybe because i'm using the same twoFactorCode twice? (My function is: logIn and change e-mail) Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted August 10, 2018 Report Share Posted August 10, 2018 That's probably the case, yes. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.