From f1df605ae30f587ddbc55160ecf15abd9ace34a3 Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Mon, 18 Feb 2019 21:41:24 +0000 Subject: [PATCH] remove change_email method --- steam/client/builtins/account.py | 34 -------------------------------- steam/core/msg/__init__.py | 4 ++-- 2 files changed, 2 insertions(+), 36 deletions(-) diff --git a/steam/client/builtins/account.py b/steam/client/builtins/account.py index 10025ae..7793896 100644 --- a/steam/client/builtins/account.py +++ b/steam/client/builtins/account.py @@ -68,37 +68,3 @@ class Account(object): return EResult.Timeout else: return EResult(resp.eresult) - - def change_email(self, password, email, code=''): - """Change account's email address - - :param password: current account password - :type password: :class:`str` - :param email: new email address - :type email: :class:`str` - :param code: email code - :type code: :class:`str` - :return: result - :rtype: :class:`.EResult` - - .. note:: - To change email, first call without ``code`` - and then with, to finalize the change - """ - message = MsgProto(EMsg.ClientEmailChange4) - message.body.password = password - message.body.email = email - - if code: - message.body.code = code - - message.body.final = not not code - message.body.newmethod = True - message.body.client_supports_sms = True - - resp = self.send_job_and_wait(message, timeout=10) - - if resp is None: - return EResult.Timeout - else: - return EResult(resp.eresult) diff --git a/steam/core/msg/__init__.py b/steam/core/msg/__init__.py index 2e77cf7..84aa219 100644 --- a/steam/core/msg/__init__.py +++ b/steam/core/msg/__init__.py @@ -18,8 +18,8 @@ cmsg_lookup_predefined = { EMsg.ServiceMethodResponse: steammessages_clientserver_2_pb2.CMsgClientServiceMethodResponse, EMsg.ClientGetNumberOfCurrentPlayersDP: steammessages_clientserver_2_pb2.CMsgDPGetNumberOfCurrentPlayers, EMsg.ClientGetNumberOfCurrentPlayersDPResponse: steammessages_clientserver_2_pb2.CMsgDPGetNumberOfCurrentPlayersResponse, - EMsg.ClientEmailChange4: steammessages_clientserver_2_pb2.CMsgClientEmailChange, - EMsg.ClientEmailChangeResponse4: steammessages_clientserver_2_pb2.CMsgClientEmailChangeResponse, +# EMsg.ClientEmailChange4: steammessages_clientserver_2_pb2.CMsgClientEmailChange, +# EMsg.ClientEmailChangeResponse4: steammessages_clientserver_2_pb2.CMsgClientEmailChangeResponse, EMsg.ClientLogonGameServer: steammessages_clientserver_login_pb2.CMsgClientLogon, }