Skip to content

Commit

Permalink
Use getpass to retrieve user password
Browse files Browse the repository at this point in the history
  • Loading branch information
keegandahm committed Mar 7, 2024
1 parent 651ae4b commit 6031f46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion monarchmoney/monarchmoney.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import asyncio
import calendar
import getpass
import json
import os
import pickle
Expand Down Expand Up @@ -88,7 +89,7 @@ async def interactive_login(
) -> None:
"""Performs an interactive login for iPython and similar environments."""
email = input("Email: ")
passwd = input("Password: ")
passwd = getpass.getpass("Password: ")
try:
await self.login(email, passwd, use_saved_session, save_session)
except RequireMFAException:
Expand Down

0 comments on commit 6031f46

Please sign in to comment.