LifeGamer Posted January 5, 2020 Report Posted January 5, 2020 (edited) Hello! I've been trying to log in with loginkey but it always says InvalidPassword. My code works like this: 1. Download steamusername and loginkey from database. 2. Check if they are not null. 3. a) If they are not null, log in with them. 3. b) If they are null, ask for password. Every time the 'loginkey' event gets called, I save the loginkey to the database. Logging in with the password works, but when I try to log in with the loginkey from the database, I get the error InvalidPassword. What am I doing wrong? My code: /* login without loginkey */ client.logOn({ accountName: steamusername, password: steampassword, machineName: "***", rememberPassword: true }); /* saving the loginkey */ client.on("loginKey", key => { saveLoginKey(username, steamusername, key); }); /* login with loginkey */ client.logOn({ accountName: steamusername, loginKey: loginkey, rememberPassword: true, machineName: "***" }); The loginkey variable is set, I checked it. (I'm sorry for any misspelled words or grammar mistakes, english is not my native language) NodeJS version 12.9.1 npm version 6.12.1 steam-user version 4.12.4 Edited January 5, 2020 by LifeGamer Quote
Dr. McKay Posted January 5, 2020 Report Posted January 5, 2020 That just kind of happens, in my experience. Not sure why. I'd advise just using passwords instead. Quote
LifeGamer Posted January 5, 2020 Author Report Posted January 5, 2020 Thanks for the quick reply! Quote
LifeGamer Posted January 5, 2020 Author Report Posted January 5, 2020 Okay, I reinstalled my VPS from Ubuntu 16.04 to 18.04 and it is working, so it might has to do something with the OS. 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.