use getpass for add_user

This commit is contained in:
ASPP Student 2024-08-26 14:55:02 +03:00
parent 028fb6bf93
commit b4ba12f5c8

View file

@ -14,7 +14,7 @@ def authenticate(username, password, pwdb):
return password == pwdb[username]
def add_user(username, pwdb):
pwdb[username] = input(f'Enter password for {username}: ')
pwdb[username] = getpass(f'Enter password for {username}: ')
return pwdb
def read_pwdb(PWDB_PATH):