Jump to content


Photo

changeEmail isn't working with TwoFactorAuth

node.js node-steam-user

Best Answer Dr. McKay , 10 August 2018 - 06:03 PM

That's probably the case, yes.

Go to the full post


  • Please log in to reply
2 replies to this topic

#1 FunnyCheeze

FunnyCheeze

    Member

  • Member
  • PipPip
  • 11 posts

Posted 09 August 2018 - 01:15 PM

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 by FunnyCheeze, 09 August 2018 - 02:36 PM.


#2 FunnyCheeze

FunnyCheeze

    Member

  • Member
  • PipPip
  • 11 posts

Posted 10 August 2018 - 02:39 AM

maybe because i'm using the same twoFactorCode twice? (My function is: logIn and change e-mail)



#3 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,721 posts

Posted 10 August 2018 - 06:03 PM   Best Answer

That's probably the case, yes.







Also tagged with one or more of these keywords: node.js, node-steam-user

2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users