-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update login.py LoginSecure fix (#344)
- Loading branch information
Showing
1 changed file
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,12 +51,17 @@ def _send_login_request(self) -> Response: | |
def set_sessionid_cookies(self): | ||
community_domain = SteamUrl.COMMUNITY_URL[8:] | ||
store_domain = SteamUrl.STORE_URL[8:] | ||
community_cookie_dic = self.session.cookies.get_dict(domain = community_domain) | ||
store_cookie_dic = self.session.cookies.get_dict(domain = store_domain) | ||
This comment has been minimized.
Sorry, something went wrong. |
||
for name in ('steamLoginSecure', 'sessionid', 'steamRefresh_steam', 'steamCountry'): | ||
cookie = self.session.cookies.get_dict()[name] | ||
community_cookie = create_cookie(name, cookie, community_domain) | ||
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) | ||
|
||
This comment has been minimized.
Sorry, something went wrong.
invoker-bot
|
||
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) | ||
|
unused line