-
Posts
3 -
Joined
-
Last visited
LifeGamer's Achievements
-
InvalidPassword while logging in with loginkey
LifeGamer replied to LifeGamer's topic in node-steam-user
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. -
InvalidPassword while logging in with loginkey
LifeGamer replied to LifeGamer's topic in node-steam-user
Thanks for the quick reply! -
LifeGamer started following InvalidPassword while logging in with loginkey
-
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