Skip to content

Commit

Permalink
Update account.py (#95)
Browse files Browse the repository at this point in the history
Hide PIN input in terminal.
  • Loading branch information
DonkeeeyKong authored Jul 11, 2024
1 parent e563331 commit acfbe8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pytr/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import sys
from pygments import highlight, lexers, formatters
import time
from getpass import getpass

from pytr.api import TradeRepublicApi, CREDENTIALS_FILE
from pytr.utils import get_logger
Expand Down Expand Up @@ -45,7 +46,7 @@ def login(phone_no=None, pin=None, web=True):

if pin is None:
print('Please enter your TradeRepublic pin:')
pin = input()
pin = getpass(prompt='Pin (Input is hidden):')

print('Save credentials? Type "y" to save credentials:')
save = input()
Expand Down

0 comments on commit acfbe8c

Please sign in to comment.