Skip to content

Commit

Permalink
More flake fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nonspecialist committed Feb 27, 2020
1 parent 520bcfe commit efe035a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions aws_google_auth/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,12 @@ def do_login(self):

# Handle the "old-style" page
if challenge_page.find('form', {'id': 'gaia_loginform'}):
form = challenge_page.find('form', {'id':'gaia_loginform'})
form = challenge_page.find('form', {'id': 'gaia_loginform'})
passwd_challenge_url = form.get('action')
else:
# sometimes they serve up a different page
logging.info("Handling new-style login page")
form = challenge_page.find('form', {'id':'challenge'})
form = challenge_page.find('form', {'id': 'challenge'})
passwd_challenge_url = 'https://accounts.google.com' + form.get('action')

for tag in form.find_all('input'):
Expand All @@ -240,7 +240,6 @@ def do_login(self):

payload[tag.get('name')] = tag.get('value')


# Update the payload
payload['Passwd'] = self.config.password

Expand Down

0 comments on commit efe035a

Please sign in to comment.