Jump to content


Photo

help with loginKey write invalid password


Best Answer Dr. McKay , 18 April 2019 - 06:27 PM

If you're using a loginkey, don't send the password.

Go to the full post


  • Please log in to reply
2 replies to this topic

#1 SpiTik

SpiTik

    Advanced Member

  • Member
  • PipPipPip
  • 41 posts

Posted 18 April 2019 - 11:20 AM

mobile Guard and i want login to script without guard

function dologin(){
  fs.readFile('./config.json', function(err, config_data){
    var data = config_data.toString();
    var config = JSON.parse(data);
      client.setOption('promptSteamGuardCode', false);
      if (fs.existsSync('login_'+botNO+'.json')) {
         console.log('[LOGIN] Login with saved credentials');
         var contents = fs.readFileSync('login_'+botNO+'.json');
         login = JSON.parse(contents);
         client.logOn({
            accountName: config.bots_info[botNO].username,
            loginKey: login.loginKey,
            password: config.bots_info[botNO].password,
            rememberPassword: true
         });
      } else {
         console.log('[LOGIN] Please sign in!');
         const logClient = {
            accountName: config.bots_info[botNO].username,
            password: config.bots_info[botNO].password,
            rememberPassword: true
          }
            client.logOn(logClient);
      };
  })
}
client.on('loginKey', function(key) {
  console.log(key);
  var out = '{"loginKey":"'+key+'"}';
   fs.writeFile('login_'+botNO+'.json', out, function(err){
      if(err) {
         console.log(err);
      } else {
         console.log('[LOGIN] Saved loginKey to \'login_'+botNO+'.json\'');
      }
   });
});

CONSOLE LOG

[18:16:09] - [LOG] Start bot.

[LOGIN] Please sign in!

[18:16:10] - [BOT] Guard Request

[18:16:40] - [LOG] logged in as client

[ 'sessionid=xxxxxxxxxxx',

  'steamLogin=xxxxxxxxxxx',

  'steamLoginSecure=xxxxxxxxxxx' ]

loginKey: xxxxxxxxxxx

[LOGIN] Saved loginKey to 'login_bot_1.json'

[18:16:50] - [ERROR] steam errror : LogonSessionReplaced

[18:16:58] - [LOG] Start bot.

[LOGIN] Login with saved credentials

[18:16:58] - [ERROR] invalid password

 


𝓢𝓟𝓘𝓣𝓘𝓚


#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,140 posts

Posted 18 April 2019 - 06:27 PM   Best Answer

If you're using a loginkey, don't send the password.



#3 SpiTik

SpiTik

    Advanced Member

  • Member
  • PipPipPip
  • 41 posts

Posted 19 April 2019 - 01:59 AM

If you're using a loginkey, don't send the password.


OK fixed thanks ^^


Edited by SpiTik, 19 April 2019 - 03:20 AM.

𝓢𝓟𝓘𝓣𝓘𝓚





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users