From b73cee6aa9df4a97c3658f514468083ae3cdb23a Mon Sep 17 00:00:00 2001 From: Eana Hufwe Date: Sun, 16 Jan 2022 16:40:48 -0800 Subject: [PATCH] fix: order of login verification --- CHANGES.rst | 8 ++++++++ efb_wechat_slave/__version__.py | 2 +- efb_wechat_slave/vendor/itchat/components/login.py | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 1d3309a..df23aaf 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -29,6 +29,13 @@ Fixed Known issue ----------- +2.0.7_ - 2022-01-16 +=================== + +Fixed +----- +- Fixed order of login verification + 2.0.6_ - 2022-01-13 =================== @@ -127,6 +134,7 @@ First release. .. _2.0.4: https://ews.1a23.studio/compare/v2.0.3...v2.0.4 .. _2.0.5: https://ews.1a23.studio/compare/v2.0.4...v2.0.5 .. _2.0.6: https://ews.1a23.studio/compare/v2.0.5...v2.0.6 +.. _2.0.7: https://ews.1a23.studio/compare/v2.0.7...v2.0.7 .. _#108: https://github.com/ehForwarderBot/efb-wechat-slave/issues/108 .. _#122: https://github.com/ehForwarderBot/efb-wechat-slave/issues/122 .. _#123: https://github.com/ehForwarderBot/efb-wechat-slave/issues/123 diff --git a/efb_wechat_slave/__version__.py b/efb_wechat_slave/__version__.py index def0155..54d15b7 100644 --- a/efb_wechat_slave/__version__.py +++ b/efb_wechat_slave/__version__.py @@ -1,3 +1,3 @@ # coding: utf-8 -__version__ = "2.0.6" +__version__ = "2.0.7.dev1" diff --git a/efb_wechat_slave/vendor/itchat/components/login.py b/efb_wechat_slave/vendor/itchat/components/login.py index 6924637..ad3668e 100644 --- a/efb_wechat_slave/vendor/itchat/components/login.py +++ b/efb_wechat_slave/vendor/itchat/components/login.py @@ -74,10 +74,10 @@ def login(self, enableCmdQR=False, picDir=None, qrCallback=None, else: return # log in process is stopped by user logger.info('Loading the contact, this may take a little while.') - self.verify_login() self.web_init() self.show_mobile_login() self.get_contact(True) + self.verify_login() if hasattr(loginCallback, '__call__'): r = loginCallback() else: