Browse Source

fix #154; validate_phone_number() returning no data

0.9
Rossen Georgiev 6 years ago
parent
commit
24b8c5b094
  1. 10
      steam/guard.py

10
steam/guard.py

@ -364,9 +364,13 @@ class SteamAuthenticator(object):
sess = self._get_web_session()
try:
resp = sess.get('https://store.steampowered.com//phone/validate',
params={'phoneNumber': phone_number},
timeout=15).json()
resp = sess.post('https://store.steampowered.com/phone/validate',
data={
'phoneNumber': phone_number,
'sessionID': sess.cookies.get('sessionid', domain='store.steampowered.com'),
},
allow_redirects=False,
timeout=15).json()
except:
resp = {}

Loading…
Cancel
Save