SpiTik Posted April 18, 2019 Report Posted April 18, 2019 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 Quote
Dr. McKay Posted April 18, 2019 Report Posted April 18, 2019 If you're using a loginkey, don't send the password. Quote
SpiTik Posted April 19, 2019 Author Report Posted April 19, 2019 (edited) If you're using a loginkey, don't send the password.OK fixed thanks ^^ Edited April 19, 2019 by SpiTik Quote
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.