fix privacy leak in add_user #19

Open
romaingu wants to merge 1 commit from romaingu/2024-heraklion-git:fpl into main
Showing only changes of commit c89c37e486 - Show all commits

View file

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