diff --git a/README.md b/README.md index daa9fc4c..ae1347e1 100644 --- a/README.md +++ b/README.md @@ -48,10 +48,6 @@ or ```sh docker run --rm --env NO_IP_USERNAME= --env NO_IP_PASSWORD= simaofsilva/noip-renewer: ``` -or with OTP -```sh -docker run --rm --env NO_IP_USERNAME= --env NO_IP_PASSWORD= --env NO_IP_OTP_KEY= simaofsilva/noip-renewer: -``` or with 2FA ```sh docker run --rm --env NO_IP_USERNAME= --env NO_IP_PASSWORD= --env NO_IP_TOTP_KEY= simaofsilva/noip-renewer: diff --git a/renew.py b/renew.py index cb42a92d..53cd9d99 100644 --- a/renew.py +++ b/renew.py @@ -173,9 +173,7 @@ def validate_2fa(code): # Account has email verification code if CODE_METHOD == "email": - otp_code = os.getenv("NO_IP_OTP_KEY", "") - if len(otp_code) == 0: - otp_code = str(input("Enter OTP code: ")).replace("\n", "") + otp_code = str(input("Enter OTP code: ")).replace("\n", "") if validate_otp(otp_code): code_inputs = code_form.find_elements(by=By.TAG_NAME, value="input") if len(code_inputs) == 6: