use getpass for add_user
This commit is contained in:
parent
028fb6bf93
commit
b4ba12f5c8
2
auth.py
2
auth.py
|
@ -14,7 +14,7 @@ def authenticate(username, password, pwdb):
|
||||||
return password == pwdb[username]
|
return password == pwdb[username]
|
||||||
|
|
||||||
def add_user(username, pwdb):
|
def add_user(username, pwdb):
|
||||||
pwdb[username] = input(f'Enter password for {username}: ')
|
pwdb[username] = getpass(f'Enter password for {username}: ')
|
||||||
return pwdb
|
return pwdb
|
||||||
|
|
||||||
def read_pwdb(PWDB_PATH):
|
def read_pwdb(PWDB_PATH):
|
||||||
|
|
Loading…
Reference in a new issue