Browse Source

fix decode of SA secrets + geven monkey patch; #95

pull/35/merge
Rossen Georgiev 8 years ago
parent
commit
a48a98a798
  1. 9
      steam/client/__init__.py
  2. 5
      steam/guard.py

9
steam/client/__init__.py

@ -8,6 +8,11 @@ Implementation of Steam client based on ``gevent``
Optional features are available as :mod:`.mixins`. This allows the client to remain light yet flexible.
"""
import gevent
import gevent.monkey
gevent.monkey.patch_socket()
gevent.monkey.patch_ssl()
import os
import json
from time import time
@ -15,10 +20,6 @@ from io import open
from getpass import getpass
import logging
import six
import gevent
import gevent.monkey
gevent.monkey.patch_socket()
gevent.monkey.patch_ssl()
from steam.core.crypto import sha1_hash
from eventemitter import EventEmitter

5
steam/guard.py

@ -141,7 +141,7 @@ class SteamAuthenticator(object):
if action == 'AddAuthenticator':
for key in ['shared_secret', 'identity_secret', 'secret_1']:
resp[key] = b64encode(resp[key])
resp[key] = b64encode(resp[key]).decode('ascii')
return resp
@ -196,6 +196,9 @@ class SteamAuthenticator(object):
def remove(self):
"""Remove authenticator
.. note::
After removing authenticator Steam Guard will be set to email codes
.. warning::
Doesn't work via :class:`.SteamClient`. Disabled by Valve

Loading…
Cancel
Save