Skip to content

Commit

Permalink
Move unwanted print statement to input
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user authored Mar 3, 2024
1 parent 09a64a4 commit be89c27
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyrh/models/sessionmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,11 +385,10 @@ def _mfa_oauth2(self, oauth_payload: JSON, attempts: int = 3) -> OAuth:
number of attempts.
"""
print("Input mfa code:")
if self.mfa != "":
mfa_code = pyotp.TOTP(self.mfa).now()
else:
mfa_code = input()
mfa_code = input("Input mfa code:")
oauth_payload["mfa_code"] = mfa_code
oauth, res = self.post(
urls.OAUTH,
Expand Down

0 comments on commit be89c27

Please sign in to comment.