From 9bfd1ffc082872947442c97471934f90053bb123 Mon Sep 17 00:00:00 2001 From: Forlot Romain Date: Wed, 26 Aug 2015 09:56:09 +0200 Subject: [PATCH 1/3] Fix : New godaddy auth method. Simpler. Login method doesn't work anymore since 24/08/2015. This fix the problem --- pygodaddy/client.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/pygodaddy/client.py b/pygodaddy/client.py index a7aaa3c..e4afc14 100644 --- a/pygodaddy/client.py +++ b/pygodaddy/client.py @@ -97,17 +97,11 @@ def login(self, username, password): :returns: `True` if login is successful, else `False` """ r = self.session.get(self.default_url) - try: - viewstate = re.compile(r'id="__VIEWSTATE" value="([^"]+)"').search(r.text).group(1) - except: - logger.exception('Login routine broken, godaddy may have updated their login mechanism') - return False data = { - 'Login$userEntryPanel2$LoginImageButton.x' : 0, - 'Login$userEntryPanel2$LoginImageButton.y' : 0, - 'Login$userEntryPanel2$UsernameTextBox' : username, - 'Login$userEntryPanel2$PasswordTextBox' : password, - '__VIEWSTATE': viewstate, + 'app' : 'idp', + 'realm' : 'idp', + 'name': username, + 'password' : password, } r = self.session.post(r.url, data=data) return self.is_loggedin(r.text) From 8d6833996bdcdabcfed340d5e9c983912cffde65 Mon Sep 17 00:00:00 2001 From: sjpengelly Date: Tue, 12 Jan 2016 02:21:46 +0000 Subject: [PATCH 2/3] update version number and changelog --- HISTORY.rst | 5 +++++ setup.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index 62a599a..5bc3233 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,3 +1,8 @@ +0.2.3 (2015-08-26) +++++++++++++++++++ + +* Fixed for GoDaddy's new auth method + 0.2.0 (2015-03-11) ++++++++++++++++++ diff --git a/setup.py b/setup.py index 6846804..ac1cbb7 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ setup( name='pygodaddy', - version = '0.2.2', + version = '0.2.3', description = '3rd Party Client Library for Manipulating Go Daddy DNS Records.', long_description=open('README.rst').read()+'\n\n'+open('HISTORY.rst').read(), url = 'https://github.com/observerss/pygodaddy', From 42cee333e921a7ecff1c72ace13cc7ec60873db3 Mon Sep 17 00:00:00 2001 From: sjpengelly Date: Tue, 12 Jan 2016 02:27:40 +0000 Subject: [PATCH 3/3] added contributor credit to changelog --- HISTORY.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index 5bc3233..87443de 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,7 +1,7 @@ 0.2.3 (2015-08-26) ++++++++++++++++++ -* Fixed for GoDaddy's new auth method +* Fixed for GoDaddy's new auth method (thanks to @claneys and @BryceGough) 0.2.0 (2015-03-11) ++++++++++++++++++