Skip to content

Commit

Permalink
Fix login
Browse files Browse the repository at this point in the history
  • Loading branch information
agsalguero committed Mar 2, 2024
1 parent 348be3e commit 3fb993e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions steampy/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,18 @@ def set_sessionid_cookies(self):
store_cookie_dic = self.session.cookies.get_dict(domain = store_domain)
for name in ('steamLoginSecure', 'sessionid', 'steamRefresh_steam', 'steamCountry'):
cookie = self.session.cookies.get_dict()[name]
if name in ["steamLoginSecure"]:
store_cookie = create_cookie(name, store_cookie_dic[name], store_domain)
else:
store_cookie = create_cookie(name, cookie, store_domain)

if name in ["sessionid", "steamLoginSecure"]:
community_cookie = create_cookie(name, community_cookie_dic[name], community_domain)
else:
community_cookie = create_cookie(name, cookie, community_domain)

self.session.cookies.set(**community_cookie)
self.session.cookies.set(**store_cookie)
self.session.cookies.set(**store_cookie)

def _fetch_rsa_params(self, current_number_of_repetitions: int = 0) -> dict:
self.session.post(SteamUrl.COMMUNITY_URL)
Expand Down

0 comments on commit 3fb993e

Please sign in to comment.