Skip to content

Commit

Permalink
fix: request_otp() for manual login wasn't called (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan-b-84 authored May 25, 2024
1 parent 68815f2 commit 6255252
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/iitkgp_erp_login/erp.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ def login(
except Exception as e:
raise ErpLoginError(f"Failed to receive OTP: {str(e)}")
else:
request_otp(headers=headers, session=session, login_details=login_details, log=LOGGING)
otp = input("Enter the OTP sent to your registered email address: ").strip()

login_details["email_otp"] = otp
Expand Down

0 comments on commit 6255252

Please sign in to comment.