Skip to content

Commit

Permalink
Invert condition, fixes #32
Browse files Browse the repository at this point in the history
  • Loading branch information
Buxdehuda authored Feb 6, 2024
1 parent aecc449 commit 733096d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion certbotstratoapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def login_2fa(
"""
# Is 2FA used
soup = BeautifulSoup(response.text, 'html.parser')
if soup.find('h1', string=re.compile('Zwei\\-Faktor\\-Authentifizierung')) is not None:
if soup.find('h1', string=re.compile('Zwei\\-Faktor\\-Authentifizierung')) is None:
print('INFO: 2FA is not used.')
return response
if (not totp_secret) or (not totp_devicename):
Expand Down

0 comments on commit 733096d

Please sign in to comment.