diff --git a/certbotstratoapi.py b/certbotstratoapi.py index c3ac6b7..3cdda36 100644 --- a/certbotstratoapi.py +++ b/certbotstratoapi.py @@ -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):