Skip to content

Commit

Permalink
Revert OTP changes (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
wulukewu authored Sep 14, 2024
1 parent c53b5c6 commit 2b6abfa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ or
```sh
docker run --rm --env NO_IP_USERNAME=<EMAIL> --env NO_IP_PASSWORD=<PASSWORD> simaofsilva/noip-renewer:<TAG>
```
or with OTP
```sh
docker run --rm --env NO_IP_USERNAME=<EMAIL> --env NO_IP_PASSWORD=<PASSWORD> --env NO_IP_OTP_KEY=<NO IP OTP KEY> simaofsilva/noip-renewer:<TAG>
```
or with 2FA
```sh
docker run --rm --env NO_IP_USERNAME=<EMAIL> --env NO_IP_PASSWORD=<PASSWORD> --env NO_IP_TOTP_KEY=<NOIP TOTP KEY> simaofsilva/noip-renewer:<TAG>
Expand Down
4 changes: 1 addition & 3 deletions renew.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2b6abfa

Please sign in to comment.